diff options
author | stuconnolly <stuart02@gmail.com> | 2009-10-07 00:11:40 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-10-07 00:11:40 +0000 |
commit | 6269e47fcf89cf3fb6d01184064dface1d163c05 (patch) | |
tree | 0f1ad826305fc2328fa49f0e5b34a17c52d883d3 /Source/SPCSVExporter.m | |
parent | 5ec0349424ff8299a25bbf5a538865e752cd9215 (diff) | |
download | sequelpro-6269e47fcf89cf3fb6d01184064dface1d163c05.tar.gz sequelpro-6269e47fcf89cf3fb6d01184064dface1d163c05.tar.bz2 sequelpro-6269e47fcf89cf3fb6d01184064dface1d163c05.zip |
More export redesign work. Note that the current implementation has a major flaw in that exporter instances (NSOperation subclasses) are not reusable and so we have to create a new instance for every 'chunk' of data we want to process.
Diffstat (limited to 'Source/SPCSVExporter.m')
-rw-r--r-- | Source/SPCSVExporter.m | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/SPCSVExporter.m b/Source/SPCSVExporter.m index 3464b72d..9bbbb4af 100644 --- a/Source/SPCSVExporter.m +++ b/Source/SPCSVExporter.m @@ -269,11 +269,14 @@ [csvData appendString:csvString]; } + // Assign the resulting CSV data to the expoter's export data + [self setExportData:csvData]; + // Mark the process as not running [self setExportProcessIsRunning:NO]; - // Pass the resulting CSV data back to the delegate by calling the specified didEndSelector - [[self delegate] performSelectorOnMainThread:[self didEndSelector] withObject:csvData waitUntilDone:YES]; + // Call the delegate's didEndSelector while passing this exporter to it + [[self delegate] performSelectorOnMainThread:[self didEndSelector] withObject:self waitUntilDone:YES]; [pool release]; } |