mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:00:37 +00:00
Document NSDocumentController, imrpove setting directory.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14845 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e69e44322d
commit
5610a38d95
6 changed files with 217 additions and 87 deletions
|
@ -406,18 +406,20 @@ static NSOpenPanel *_gs_gui_open_panel = nil;
|
|||
* Running the NSOpenPanel
|
||||
*/
|
||||
/** Displays the open panel in a modal session, filtering for
|
||||
files that have the specified types */
|
||||
files that have the specified types
|
||||
*/
|
||||
- (int) runModalForTypes: (NSArray *)fileTypes
|
||||
{
|
||||
return [self runModalForDirectory: @""
|
||||
return [self runModalForDirectory: nil
|
||||
file: @""
|
||||
types: fileTypes];
|
||||
}
|
||||
|
||||
/** Displays the open panel in a modal session, with the directory
|
||||
path shown and file name (if any) selected. Files are filtered for the
|
||||
specified types. The directory and filename can be empty strings
|
||||
but must not be nil. */
|
||||
specified types. If the directory is nil, then the directory shown in
|
||||
the opena panel is the last directory selected.
|
||||
*/
|
||||
- (int) runModalForDirectory: (NSString *)path
|
||||
file: (NSString *)name
|
||||
types: (NSArray *)fileTypes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue