diff options
author | mltownsend <mltownsend@gmail.com> | 2008-12-18 20:10:53 +0000 |
---|---|---|
committer | mltownsend <mltownsend@gmail.com> | 2008-12-18 20:10:53 +0000 |
commit | 59c95e96af7a2382252d74adc2d97b0015785f99 (patch) | |
tree | f378b745c720fe8bc2c93f5b5cc438a3f1e857a5 /Source/TableDump.m | |
parent | 906c1bda101a07181185d8dc6da412d1a6eb7c3d (diff) | |
download | sequelpro-59c95e96af7a2382252d74adc2d97b0015785f99.tar.gz sequelpro-59c95e96af7a2382252d74adc2d97b0015785f99.tar.bz2 sequelpro-59c95e96af7a2382252d74adc2d97b0015785f99.zip |
Removed Panther compatibilitiy
Diffstat (limited to 'Source/TableDump.m')
-rw-r--r-- | Source/TableDump.m | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/Source/TableDump.m b/Source/TableDump.m index ab96baf3..442ec84a 100644 --- a/Source/TableDump.m +++ b/Source/TableDump.m @@ -361,16 +361,10 @@ [prefs setObject:[sheet directory] forKey:@"openPath"]; //load file into string - if ( [NSString respondsToSelector:@selector(stringWithContentsOfFile:encoding:error:)] ) { - // mac os 10.4 or later - dumpFile = [NSString stringWithContentsOfFile:[sheet filename] - encoding:[CMMCPConnection encodingForMySQLEncoding:[[tableDocumentInstance encoding] cString]] - error:errorStr]; - } else { - // mac os pre 10.4 - dumpFile = [NSString stringWithContentsOfFile:[sheet filename]]; - } - + dumpFile = [NSString stringWithContentsOfFile:[sheet filename] + encoding:[CMMCPConnection encodingForMySQLEncoding:[[tableDocumentInstance encoding] cString]] + error:errorStr]; + if ( !dumpFile ) { NSBeginAlertSheet(NSLocalizedString(@"Error", @"Title of error alert"), NSLocalizedString(@"OK", @"OK button"), |