Instance Method


Presents the panel as a modeless window.


func begin(completionHandler handler: @escaping (NSApplication.ModalResponse) -> Void)



The block called after the user has closed the panel. The argument passed in will be NSFileHandlingPanelOKButton if the user chose the OK button or NSFileHandlingPanelCancelButton if the user chose the Cancel button.


Any properties of the panel you wish to set should be set before calling this method.

See Also

Running Panels

func runModal() -> NSApplication.ModalResponse

Displays the panel and begins its event loop with the current working (or last selected) directory as the default starting point.

func validateVisibleColumns()

Validates and possibly reloads the browser columns visible in the panel by invoking the delegate method panel:shouldShowFilename:.