Instance Method

unlockDocument:

Unlocks the document in response to the user choosing the Unlock menu item.

Declaration

- (IBAction)unlockDocument:(id)sender;

Parameters

sender

The control sending the message.

Discussion

This is the action of the Unlock menu item in a document-based app. This action method invokes the unlockDocumentWithCompletionHandler: method by default.

See Also

Locking Documents

- lockDocument:

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

- lockDocumentWithCompletionHandler:

Prevents the user from making further changes to the document.

- lockWithCompletionHandler:

Prevents further modifications from being made to the file.

- unlockDocumentWithCompletionHandler:

Allows the user to make modifications to the document.

- unlockWithCompletionHandler:

Allows the user to make modifications to the file.

locked

A Boolean value indicating whether or not the file can be written to.