diff options
author | Max <post@wickenrode.com> | 2015-11-21 03:47:44 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-11-21 03:47:44 +0100 |
commit | 966ee1615e16bf1e4864d61d5346296d546f6227 (patch) | |
tree | bf7ee9bffa80efdcb6f298ec9b9052acca4f0565 /Source/SPExporter.h | |
parent | 7d4ec977bfdc0fea0af962d3859ba6d39c3c3a2d (diff) | |
download | sequelpro-966ee1615e16bf1e4864d61d5346296d546f6227.tar.gz sequelpro-966ee1615e16bf1e4864d61d5346296d546f6227.tar.bz2 sequelpro-966ee1615e16bf1e4864d61d5346296d546f6227.zip |
Move some shared code to the parent class
Diffstat (limited to 'Source/SPExporter.h')
-rw-r--r-- | Source/SPExporter.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/SPExporter.h b/Source/SPExporter.h index a2a19020..83a519c4 100644 --- a/Source/SPExporter.h +++ b/Source/SPExporter.h @@ -130,9 +130,26 @@ - (void)setExportOutputCompressFile:(BOOL)compress; +#pragma mark Shared Private + /** * This is the method you should override in every concrete exporter implementation. */ - (void)exportOperation; +/** + * Write a string to the current output file using the current output encoding + * @param input The string to write + */ +- (void)writeString:(NSString *)input; + +/** + * Write a string to the current output file using UTF-8 encoding + * @param input The string to write + */ +#warning This method mainly exists to shorten some old code which sometimes uses [self exportOutputEncoding] and sometimes NSUTF8StringEncoding. \ + In general there should be no need to have more than one encoding in a file. \ + Someone needs to check if that was an oversight or intentional. +- (void)writeUTF8String:(NSString *)input; + @end |