Displays the panel and begins its event loop with the current working (or last selected) directory as the default starting point.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
func runModal() -> NSApplication.Modal Response
Return Value
NSFile
(if the user clicks the OK button) or NSFile
(if the user clicks the Cancel button).
Discussion
This method invokes NSApplication
‘s run
method with self
as the argument.