diff options
author | rowanbeentje <rowan@beent.je> | 2013-05-21 22:53:10 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2013-05-21 22:53:10 +0000 |
commit | 2737ac00c38513d976fda08104a5014221b0c99c (patch) | |
tree | 38829f7d5d9982b9648259cae0a269ef1640dd18 /Source/SPDatabaseDocument.m | |
parent | 9432986de1d25527b133715ab12a8dffc2c5f6b6 (diff) | |
download | sequelpro-2737ac00c38513d976fda08104a5014221b0c99c.tar.gz sequelpro-2737ac00c38513d976fda08104a5014221b0c99c.tar.bz2 sequelpro-2737ac00c38513d976fda08104a5014221b0c99c.zip |
- Fix all the Xcode 4.6.2 build warnings, and tweak warning settings to enable some more
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index ab321caa..10325374 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -45,6 +45,7 @@ enum { #import "SPTablesList.h" #import "SPTableStructure.h" +#import "SPDatabaseStructure.h" #ifndef SP_CODA /* headers */ #import "SPFileHandle.h" #import "SPKeychain.h" @@ -99,6 +100,7 @@ enum { #endif #import "SPThreadAdditions.h" #import "RegexKitLite.h" +#import "SPTextView.h" #ifdef SP_CODA /* headers */ #import "SPAlertSheets.h" @@ -4179,7 +4181,7 @@ static NSString *SPAlterDatabaseAction = @"SPAlterDatabase"; // Cancel autocompletion trigger if([prefs boolForKey:SPCustomQueryAutoComplete]) #endif - [NSObject cancelPreviousPerformRequestsWithTarget:[customQueryInstance valueForKeyPath:@"textView"] + [NSObject cancelPreviousPerformRequestsWithTarget:[customQueryInstance valueForKeyPath:@"textView"] selector:@selector(doAutoCompletion) object:nil]; #ifndef SP_CODA @@ -5413,7 +5415,7 @@ static NSString *SPAlterDatabaseAction = @"SPAlterDatabase"; [fh writeData:[[[theResult fieldNames] componentsJoinedAsCSV] dataUsingEncoding:NSUTF8StringEncoding]]; else [fh writeData:[[[theResult fieldNames] componentsJoinedByString:@"\t"] dataUsingEncoding:NSUTF8StringEncoding]]; - [fh writeData:[[NSString stringWithString:@"\n"] dataUsingEncoding:NSUTF8StringEncoding]]; + [fh writeData:[@"\n" dataUsingEncoding:NSUTF8StringEncoding]]; NSArray *columnDefinition = [theResult fieldDefinitions]; |