mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Overriden -[NSSavePanel runModal] in NSOpenPanel to take in account the allowed
file types as documented in Cocoa. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31577 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ed048fb13d
commit
217512165b
2 changed files with 19 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-10-31 Quentin Mathe <quentin.mathe@gmail.com>
|
||||
|
||||
* Source/NSOpenPanel.m (-runModal): Added. NSOpenPanel overrides
|
||||
NSSavePanel version to take in account -allowedFileTypes as documented
|
||||
in Cocoa.
|
||||
|
||||
2010-10-30 German Arias <german@xelalug.org>
|
||||
|
||||
* Documentation/GNUmakefile: Changes in some files names to
|
||||
|
|
|
@ -442,8 +442,19 @@ static NSOpenPanel *_gs_gui_open_panel = nil;
|
|||
/*
|
||||
* Running the NSOpenPanel
|
||||
*/
|
||||
/**<p>Displays the open panel in a modal session, filtering for
|
||||
files that have the specified types </p>
|
||||
|
||||
/**<p>Displays the open panel in a modal session, showing the current directory
|
||||
(or last selected), and filtering for files that matches the allowed file
|
||||
types.</p>
|
||||
<p>See Also: -runModalForDirectory:file:types: and -allowedFileTypes</p>
|
||||
*/
|
||||
- (int) runModal
|
||||
{
|
||||
return [self runModalForTypes: [self allowedFileTypes]];
|
||||
}
|
||||
|
||||
/**<p>Displays the open panel in a modal session, showing the current directory
|
||||
(or last selected), and filtering for files that have the specified types.</p>
|
||||
<p>See Also: -runModalForDirectory:file:types:</p>
|
||||
*/
|
||||
- (int) runModalForTypes: (NSArray *)fileTypes
|
||||
|
|
Loading…
Reference in a new issue