runModal()
Displays the panel and begins its event loop with the current working (or last-selected) directory as the default starting point.
Declaration
func runModal() -> NSApplication.ModalResponseReturn Value
NSFileHandlingPanelOKButton (if the user clicks the OK button) or NSFileHandlingPanelCancelButton (if the user clicks the Cancel button).
Discussion
This method invokes NSApplication’s runModal(for:) method with self as the argument.