Displays the panel and begins a modal event loop that is terminated when the user clicks either OK or Cancel.
- macOS 10.0–10.6Deprecated
An array of file extensions and/or HFS file types. Specifies the files the panel allows the user to select.
nilmakes all files selectable by the user. An array of types passed in here will override one set using
The button used to dismiss the dialog:
NSOKButton for the OK button and
NSCancel for the Cancel button.
This convenience method sends
file to the panel. See
run for additional details.