aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportController.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-10-17 00:35:09 +0000
committerstuconnolly <stuart02@gmail.com>2009-10-17 00:35:09 +0000
commit6a4e2994d17220eb43015162522deec1efdd429b (patch)
treef1d2abc0691948bcbd901929c82347137ee0de85 /Source/SPExportController.m
parentc3eb7de88f2baf7774749f4311a84b75ef833eb7 (diff)
downloadsequelpro-6a4e2994d17220eb43015162522deec1efdd429b.tar.gz
sequelpro-6a4e2994d17220eb43015162522deec1efdd429b.tar.bz2
sequelpro-6a4e2994d17220eb43015162522deec1efdd429b.zip
Replace the use of hard coded preference keys with constants to prevent issues such as the one fixed in revision 1419. All future preference usage should be done so using these constants.
Diffstat (limited to 'Source/SPExportController.m')
-rw-r--r--Source/SPExportController.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPExportController.m b/Source/SPExportController.m
index e4079877..19d794ae 100644
--- a/Source/SPExportController.m
+++ b/Source/SPExportController.m
@@ -29,6 +29,7 @@
#import "TableDocument.h"
#import "SPArrayAdditions.h"
#import "SPStringAdditions.h"
+#import "SPConstants.h"
@interface SPExportController (PrivateAPI)
@@ -461,7 +462,7 @@
[csvExporter setCsvEscapeString:[exportCSVFieldsEscapedField stringValue]];
[csvExporter setExportOutputEncoding:[MCPConnection encodingForMySQLEncoding:[[tableDocumentInstance connectionEncoding] UTF8String]]];
- [csvExporter setCsvNULLString:[[NSUserDefaults standardUserDefaults] objectForKey:@"NullValue"]];
+ [csvExporter setCsvNULLString:[[NSUserDefaults standardUserDefaults] objectForKey:SPNullValue]];
[csvExporter setCsvTableColumnNumericStatus:tableColumnNumericStatus];