aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCSVExporter.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPCSVExporter.m')
-rw-r--r--Source/SPCSVExporter.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/SPCSVExporter.m b/Source/SPCSVExporter.m
index 40feadf9..cb0249ef 100644
--- a/Source/SPCSVExporter.m
+++ b/Source/SPCSVExporter.m
@@ -47,6 +47,10 @@
/**
* Initialise an instance of SPCSVExporter using the supplied delegate.
+ *
+ * @param exportDelegate The exporter delegate
+ *
+ * @return The initialised instance
*/
- (id)initWithDelegate:(NSObject *)exportDelegate
{
@@ -361,7 +365,7 @@
currentPoolDataLength += [csvString length];
// Write it to the fileHandle
- [[self exportOutputFileHandle] writeData:[csvString dataUsingEncoding:[self exportOutputEncoding]]];
+ [[self exportOutputFile] writeData:[csvString dataUsingEncoding:[self exportOutputEncoding]]];
currentRowIndex++;
@@ -389,7 +393,7 @@
}
// Write data to disk
- [[self exportOutputFileHandle] synchronizeFile];
+ [[[self exportOutputFile] exportFileHandle] synchronizeFile];
// Mark the process as not running
[self setExportProcessIsRunning:NO];