Presents an Open panel as a sheet with the directory specified by
absolute and optionally the file specified by
- macOS 10.0–10.6Deprecated
The directory whose files the panel displays. When
nil, the directory is the same directory used in the previous invocation of the panel; this is probably the best choice for most situations.
Specifies a particular file in
absolutethat is selected when the Open panel is presented to the user. When
nil, no file is initially selected.
An array of file extensions and/or HFS file types. Specifies the files the panel allows the user to select. nil makes all files in
absoluteselectable by the user. An array of types passed in here will override one set using
The window to open the sheet on.
This is not the same as a delegate assigned to the panel. This delegate is temporary and the relationship only lasts until the panel is dismissed.
The message sent to
modalafter the modal session has ended, but before dismissing the Open panel.
didmay dismiss the Open panel itself; otherwise, it will be dismissed on return from the method. The corresponding method should have the following signature:
The value passed as
returnwill be either
Any context information passed to