diff options
author | stuconnolly <stuart02@gmail.com> | 2012-02-19 16:25:19 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-02-19 16:25:19 +0000 |
commit | 2483cd22f74239d2a06c83f1c5d9a25eaab44a7c (patch) | |
tree | 2a8a527b3f418c257e65156efb582f818324c812 /Source/SPServerVariablesController.m | |
parent | b7bd2ae9a683652920a6c772eadeca2bac1e7b91 (diff) | |
download | sequelpro-2483cd22f74239d2a06c83f1c5d9a25eaab44a7c.tar.gz sequelpro-2483cd22f74239d2a06c83f1c5d9a25eaab44a7c.tar.bz2 sequelpro-2483cd22f74239d2a06c83f1c5d9a25eaab44a7c.zip |
Bring outline view branch up to date with trunk (r3471:r3481).
Diffstat (limited to 'Source/SPServerVariablesController.m')
-rw-r--r-- | Source/SPServerVariablesController.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPServerVariablesController.m b/Source/SPServerVariablesController.m index f2eb60e0..5b9114d8 100644 --- a/Source/SPServerVariablesController.m +++ b/Source/SPServerVariablesController.m @@ -124,8 +124,8 @@ { NSSavePanel *panel = [NSSavePanel savePanel]; - [panel setRequiredFileType:@"cnf"]; - + [panel setAllowedFileTypes:[NSArray arrayWithObject:@"cnf"]]; + [panel setExtensionHidden:NO]; [panel setAllowsOtherFileTypes:YES]; [panel setCanSelectHiddenExtension:YES]; @@ -174,7 +174,7 @@ [variablesString appendFormat:@"%@ = %@\n", [variable objectForKey:@"Variable_name"], [variable objectForKey:@"Value"]]; } - [variablesString writeToFile:[panel filename] atomically:YES encoding:NSUTF8StringEncoding error:NULL]; + [variablesString writeToURL:[panel URL] atomically:YES encoding:NSUTF8StringEncoding error:NULL]; } } } |