diff options
author | stuconnolly <stuart02@gmail.com> | 2009-09-16 14:04:33 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-09-16 14:04:33 +0000 |
commit | 61541a2b48b7f475394e7301794bca514f43ddf1 (patch) | |
tree | a6eb748eb23c15bac8df359c610ca087273f0102 /Source/SPExporter.m | |
parent | a4cbc850448f901a5320b9b9cfac2f8d28bafa2f (diff) | |
download | sequelpro-61541a2b48b7f475394e7301794bca514f43ddf1.tar.gz sequelpro-61541a2b48b7f475394e7301794bca514f43ddf1.tar.bz2 sequelpro-61541a2b48b7f475394e7301794bca514f43ddf1.zip |
Some more data exporter redesign changes I've been meaning to commit.
Diffstat (limited to 'Source/SPExporter.m')
-rw-r--r-- | Source/SPExporter.m | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/Source/SPExporter.m b/Source/SPExporter.m index f8f2cba0..9cc681d8 100644 --- a/Source/SPExporter.m +++ b/Source/SPExporter.m @@ -28,6 +28,34 @@ @implementation SPExporter @synthesize delegate; -@synthesize progressValue; +@synthesize exportProgressValue; +@synthesize exportProcessIsRunning; +@synthesize exportProcessShouldExit; +@synthesize exportOutputEncoding; + +/** + * Initialize an instance of the exporter setting some default values + */ +- (id)init +{ + if ((self == [super init])) { + [self setExportProgressValue:0]; + [self setExportProcessIsRunning:NO]; + [self setExportProcessShouldExit:NO]; + + // Default the output encoding to UTF-8 + [self setExportOutputEncoding:NSUTF8StringEncoding]; + } + + return self; +} + +/** + * + */ +- (void)main +{ + @throw [NSException exceptionWithName:@"NSOperation main() call" reason:@"Can't call NSOperation's main() method in SPExpoter, must be overriden in subclass." userInfo:nil]; +} @end |