diff options
author | rowanbeentje <rowan@beent.je> | 2012-02-08 01:42:21 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-02-08 01:42:21 +0000 |
commit | 700d4e71f39e7e10f6838543f8f9f2fda81a8eba (patch) | |
tree | 7f3e75b6842ceaa46dee26842c4e8bc7c4de35f2 /Source/SPContentFilterManager.m | |
parent | 36c061403637d5fefc1473ac3b668e54b1341871 (diff) | |
download | sequelpro-700d4e71f39e7e10f6838543f8f9f2fda81a8eba.tar.gz sequelpro-700d4e71f39e7e10f6838543f8f9f2fda81a8eba.tar.bz2 sequelpro-700d4e71f39e7e10f6838543f8f9f2fda81a8eba.zip |
- Cleanup: improve compatibility with 10.7 SDK to reduce compiler warnings
Diffstat (limited to 'Source/SPContentFilterManager.m')
-rw-r--r-- | Source/SPContentFilterManager.m | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/SPContentFilterManager.m b/Source/SPContentFilterManager.m index 0d4b7c18..7c6213b2 100644 --- a/Source/SPContentFilterManager.m +++ b/Source/SPContentFilterManager.m @@ -309,7 +309,7 @@ { NSSavePanel *panel = [NSSavePanel savePanel]; - [panel setRequiredFileType:SPFileExtensionDefault]; + [panel setAllowedFileTypes:[NSArray arrayWithObject:SPFileExtensionDefault]]; [panel setExtensionHidden:NO]; [panel setAllowsOtherFileTypes:NO]; @@ -773,12 +773,11 @@ SEL action = [menuItem action]; - if ( (action == @selector(duplicateContentFilter:))) + if (action == @selector(duplicateContentFilter:)) { return ([contentFilterTableView numberOfSelectedRows] == 1); } - else if ( (action == @selector(removeContentFilter:)) || - ( action == @selector(exportFavorites:))) + else if ( (action == @selector(removeContentFilter:)) || (action == @selector(exportFavorites:)) ) { return ([contentFilterTableView numberOfSelectedRows] > 0); } @@ -937,7 +936,7 @@ } NSError *error = nil; - [plist writeToFile:[panel filename] options:NSAtomicWrite error:&error]; + [plist writeToURL:[panel URL] options:NSAtomicWrite error:&error]; if (error) [[NSAlert alertWithError:error] runModal]; } |