Contents

lock(_:)

Locks the document in response to the user choosing the Lock menu item.

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(completionHandler:) method by default.

See Also

Locking the Document