(Preliminary Documentation) Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

NSOpenPanel 

Inherits From:	NSSavePanel : NSPanel : NSWindow : NSResponder : NSObject 

Declared In:	appkit/NSOpenPanel.h 

Creating and Initializing an OpenPanel 

+ (NSOpenPanel *)openPanel	Returns an OpenPanel object having default initialization.

Filtering Files 

- (BOOL)allowsMultipleSelection	Returns YES if the panel allows the user to open multiple files (and directories) at a time.
- (BOOL)canChooseDirectories	Returns YES if the panel allows the user to choose directories.
- (BOOL)canChooseFiles	Returns YES if the panel allows the user to choose files.
- (void)setAllowsMultipleSelection:(BOOL)flag	Sets whether the user can open multiple files (and directories) at a time.
- (void)setCanChooseDirectories:(BOOL)flag	Sets whether the user can choose directories.
- (void)setCanChooseFiles:(BOOL)flag	Sets whether the user can choose files.

Querying the Chosen Files 

- (NSArray *)filenames	Returns an array containing the names of the selected files and directories.

Running the OpenPanel 

- (int)runModalForTypes:(NSArray *)fileTypes	Invokes the runModalForDirectory:file:types: method, using the last directory from which a file was chosen as the path argument.  Returns the value returned by that method.
- (int)runModalForDirectory:(NSString *)path	Displays the panel and begins its event loop.  The panel
file:(NSString *)filename		displays the files in path that match the types in
types:(NSArray *)fileTypes		fileTypes, with filename selected.  Returns NSOKButton (if the user clicks the OK button) or NSCancelButton (if the user clicks the Cancel button).
- (int)runModalForTypes:(NSArray *)fileTypes	Invokes runModalForDirectory:file:types: using the last
		directory from which a file was chosen as the path argument.