Contents

ok(_:)

The action method that the panel calls when the user clicks the OK button.

Declaration

@IBAction func ok(_ sender: Any?)

Parameters

  • sender:

    The Nssavepanel object that contains the OK button.

Discussion

In macOS 10.15 and later, you cannot call this method programmatically to trigger the OK action. Prior to macOS 10.15, AppKit prevented only sandboxed apps from calling this method.

See Also

Handling Actions