diff options
author | abhibeckert <abhi@abhibeckert.com> | 2008-04-20 11:09:57 +0000 |
---|---|---|
committer | abhibeckert <abhi@abhibeckert.com> | 2008-04-20 11:09:57 +0000 |
commit | 0261432e0704f5afe4067e7288d7845c6c8bb82f (patch) | |
tree | 4ee93fa9779fa84d13fbf977996937a44b37bae4 /TableDump.m | |
parent | 385af2eacdcceb9160d787539380d921919f3d99 (diff) | |
download | sequelpro-0261432e0704f5afe4067e7288d7845c6c8bb82f.tar.gz sequelpro-0261432e0704f5afe4067e7288d7845c6c8bb82f.tar.bz2 sequelpro-0261432e0704f5afe4067e7288d7845c6c8bb82f.zip |
refactor encoding system
refactor menu validation
move database action buttons into a new "Database" menu
pretty up the table select view and it's action buttons
Diffstat (limited to 'TableDump.m')
-rw-r--r-- | TableDump.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TableDump.m b/TableDump.m index d363f192..17119cda 100644 --- a/TableDump.m +++ b/TableDump.m @@ -270,7 +270,7 @@ saves the export file if ( [fileContent respondsToSelector:@selector(writeToFile:atomically:encoding:error:)] ) { // mac os 10.4 or later - success = [fileContent writeToFile:[sheet filename] atomically:YES encoding:[CMMCPConnection encodingForMySQLEncoding:[[tableDocumentInstance getSelectedEncoding] cString]] error:errorStr]; + success = [fileContent writeToFile:[sheet filename] atomically:YES encoding:[CMMCPConnection encodingForMySQLEncoding:[[tableDocumentInstance encoding] cString]] error:errorStr]; } else { // mac os pre 10.4 success = [fileContent writeToFile:[sheet filename] atomically:YES]; @@ -342,7 +342,7 @@ reads mysql-dumpfile //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 getSelectedEncoding] cString]] error:errorStr]; + dumpFile = [NSString stringWithContentsOfFile:[sheet filename] encoding:[CMMCPConnection encodingForMySQLEncoding:[[tableDocumentInstance encoding] cString]] error:errorStr]; } else { // mac os pre 10.4 dumpFile = [NSString stringWithContentsOfFile:[sheet filename]]; |