Locks the document in response to the user choosing the Lock menu item.
SDK
- macOS 10.8+
Framework
- App
Kit
Declaration
@IBAction func lock(_ sender: Any?)
Parameters
sender
The control sending the message.
Discussion
This is the action of the Lock menu item in a document-based app. This action method invokes the lock(completion
method by default.