aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExporter.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-10-07 00:11:40 +0000
committerstuconnolly <stuart02@gmail.com>2009-10-07 00:11:40 +0000
commit6269e47fcf89cf3fb6d01184064dface1d163c05 (patch)
tree0f1ad826305fc2328fa49f0e5b34a17c52d883d3 /Source/SPExporter.m
parent5ec0349424ff8299a25bbf5a538865e752cd9215 (diff)
downloadsequelpro-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/SPExporter.m')
-rw-r--r--Source/SPExporter.m16
1 files changed, 15 insertions, 1 deletions
diff --git a/Source/SPExporter.m b/Source/SPExporter.m
index f99b35c3..a1fe448b 100644
--- a/Source/SPExporter.m
+++ b/Source/SPExporter.m
@@ -31,6 +31,7 @@
@synthesize didEndSelector;
@synthesize exportProgressValue;
@synthesize exportProcessIsRunning;
+@synthesize exportData;
@synthesize exportOutputEncoding;
/**
@@ -44,10 +45,13 @@
[self setExportProgressValue:0];
[self setExportProcessIsRunning:NO];
+ // Default the resulting data to an empty string
+ [self setExportData:@""];
+
// Default the output encoding to UTF-8
[self setExportOutputEncoding:NSUTF8StringEncoding];
- [self setDidEndSelector:@selector(csvDataAvailable:)];
+ [self setDidEndSelector:@selector(exporterDataConversionProcessComplete:)];
}
return self;
@@ -61,4 +65,14 @@
@throw [NSException exceptionWithName:@"NSOperation main() call" reason:@"Can't call NSOperation's main() method in SPExpoter, must be overriden in subclass." userInfo:nil];
}
+/**
+ * Get rid of the export data.
+ */
+- (void)dealloc
+{
+ [exportData release], exportData = nil;
+
+ [super dealloc];
+}
+
@end