Initializes the panel to the directory and file specified, if any, then displays it and begins its modal event loop.
- macOS 10.0–10.6Deprecated
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
paththat is selected when the Save panel is presented to a user. When
nil, no file is initially selected.
NSFile (if the user clicks the OK button) or
NSFile (if the user clicks the Cancel button).
This method invokes
run method with
self as the argument.