Presents the panel as a modeless window.
- macOS 10.6+
The block to call after the user closes the panel. This block has no return value and takes a single parameter:
The action taken by the user. The value of this parameter is
NSFileif the user chose the OK button or
Handling Panel OKButton
NSFileif the user chose the Cancel button.
Handling Panel Cancel Button
Configure all of the relevant properties of the panel before you call this method.