diff options
author | stuconnolly <stuart02@gmail.com> | 2009-10-06 16:13:05 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-10-06 16:13:05 +0000 |
commit | 23c8a125dca16dd846a25d7ab30266e52f8048f2 (patch) | |
tree | 0547a7225b6a8e794e73392756679a266e4d40f9 /Source/SPExporter.m | |
parent | 3f2838787602f50176a0ea4e15c0f69cd403920c (diff) | |
download | sequelpro-23c8a125dca16dd846a25d7ab30266e52f8048f2.tar.gz sequelpro-23c8a125dca16dd846a25d7ab30266e52f8048f2.tar.bz2 sequelpro-23c8a125dca16dd846a25d7ab30266e52f8048f2.zip |
More export redesign work.
Diffstat (limited to 'Source/SPExporter.m')
-rw-r--r-- | Source/SPExporter.m | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/SPExporter.m b/Source/SPExporter.m index a5a1f834..f99b35c3 100644 --- a/Source/SPExporter.m +++ b/Source/SPExporter.m @@ -34,16 +34,20 @@ @synthesize exportOutputEncoding; /** - * Initialize an instance of the exporter setting some default values + * Initialise an instance of SPCSVExporter using the supplied delegate and set some default values. */ -- (id)init +- (id)initWithDelegate:(id)exportDelegate { - if ((self == [super init])) { + if ((self = [super init])) { + [self setDelegate:exportDelegate]; + [self setExportProgressValue:0]; [self setExportProcessIsRunning:NO]; // Default the output encoding to UTF-8 [self setExportOutputEncoding:NSUTF8StringEncoding]; + + [self setDidEndSelector:@selector(csvDataAvailable:)]; } return self; |