This action method is invoked when the user clicks the panel’s OK button.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
@IBAction func ok(_ sender: Any?)
Parameters
sender
The
NSSave
object whose OK button was clicked.Panel
Discussion
Sandboxed apps cannot programmatically invoke the OK button.