replace the deprecated setRequiredFileType: with setAllowedFileTypes:
This commit is contained in:
parent
baaf5b8d3f
commit
6485bea986
|
@ -393,7 +393,7 @@
|
||||||
[descriptors release];
|
[descriptors release];
|
||||||
|
|
||||||
NSSavePanel * panel = [NSSavePanel savePanel];
|
NSSavePanel * panel = [NSSavePanel savePanel];
|
||||||
[panel setRequiredFileType: @"txt"];
|
[panel setAllowedFileTypes: [NSArray arrayWithObject: @"txt"]];
|
||||||
[panel setCanSelectHiddenExtension: YES];
|
[panel setCanSelectHiddenExtension: YES];
|
||||||
|
|
||||||
[panel beginSheetForDirectory: nil file: NSLocalizedString(@"untitled", "Save log panel -> default file name")
|
[panel beginSheetForDirectory: nil file: NSLocalizedString(@"untitled", "Save log panel -> default file name")
|
||||||
|
|
Loading…
Reference in New Issue