aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPEditorPreferencePane.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-02-08 01:42:21 +0000
committerrowanbeentje <rowan@beent.je>2012-02-08 01:42:21 +0000
commit700d4e71f39e7e10f6838543f8f9f2fda81a8eba (patch)
tree7f3e75b6842ceaa46dee26842c4e8bc7c4de35f2 /Source/SPEditorPreferencePane.m
parent36c061403637d5fefc1473ac3b668e54b1341871 (diff)
downloadsequelpro-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/SPEditorPreferencePane.m')
-rw-r--r--Source/SPEditorPreferencePane.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPEditorPreferencePane.m b/Source/SPEditorPreferencePane.m
index 08e91936..f2802180 100644
--- a/Source/SPEditorPreferencePane.m
+++ b/Source/SPEditorPreferencePane.m
@@ -128,7 +128,7 @@ static NSString *SPCustomColorSchemeNameLC = @"user-defined";
{
NSSavePanel *panel = [NSSavePanel savePanel];
- [panel setRequiredFileType:SPColorThemeFileExtension];
+ [panel setAllowedFileTypes:[NSArray arrayWithObject:SPColorThemeFileExtension]];
[panel setExtensionHidden:NO];
[panel setAllowsOtherFileTypes:NO];
@@ -521,7 +521,7 @@ static NSString *SPCustomColorSchemeNameLC = @"user-defined";
{
if ([contextInfo isEqualToString:SPExportColorScheme]) {
if (returnCode == NSOKButton) {
- [self _saveColorThemeAtPath:[panel filename]];
+ [self _saveColorThemeAtPath:[[panel URL] path]];
}
}
else if ([contextInfo isEqualToString:SPImportColorScheme]) {