mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 23:40:48 +00:00
Replace calls to private method -_setupForTypes: in NSOpenPanel, as
that method was removed from its superclass NSSavePanel. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34782 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
744e61d204
commit
73b000e5a3
2 changed files with 9 additions and 3 deletions
|
@ -81,7 +81,6 @@ static NSOpenPanel *_gs_gui_open_panel = nil;
|
|||
- (void) _selectCellName: (NSString *)title;
|
||||
- (void) _selectTextInColumn: (int)column;
|
||||
- (void) _setupForDirectory: (NSString *)path file: (NSString *)filename;
|
||||
- (void) _setupForTypes: (NSArray *)fileTypes; /* I'm cheating here... */
|
||||
- (BOOL) _shouldShowExtension: (NSString *)extension;
|
||||
- (NSComparisonResult) _compareFilename: (NSString *)n1 with: (NSString *)n2;
|
||||
@end
|
||||
|
@ -435,7 +434,7 @@ static NSOpenPanel *_gs_gui_open_panel = nil;
|
|||
didEndSelector: (SEL)didEndSelector
|
||||
contextInfo: (void *)contextInfo
|
||||
{
|
||||
[self _setupForTypes: fileTypes];
|
||||
[self setAllowedFileTypes: fileTypes];
|
||||
[self beginSheetForDirectory: path
|
||||
file: name
|
||||
modalForWindow: docWindow
|
||||
|
@ -452,7 +451,7 @@ static NSOpenPanel *_gs_gui_open_panel = nil;
|
|||
contextInfo: (void *)contextInfo
|
||||
{
|
||||
// FIXME: This should be modeless
|
||||
[self _setupForTypes: fileTypes];
|
||||
[self setAllowedFileTypes: fileTypes];
|
||||
[self _setupForDirectory: path file: filename];
|
||||
if ([filename length] > 0)
|
||||
[_okButton setEnabled: YES];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue