Instance Method

ok(_:)

This action method is invoked when the user clicks the panel’s OK button.

Declaration

@IBAction func ok(_ sender: Any?)

Parameters

sender

The NSSavePanel object whose OK button was clicked.

Discussion

Sandboxed apps cannot programmatically invoke the OK button.

See Also

Related Symbols

func cancel(Any?)

This action method is invoked when the user clicks the panel’s Cancel button.