Instance Method

unlockWithCompletionHandler:

Allows the user to make modifications to the document's file.

Declaration

- (void)unlockWithCompletionHandler:(void (^)(NSError *))completionHandler;

Parameters

completionHandler

The completion handler block object passed in to be invoked after unlocking is completed, regardless of success or failure.

Discussion

By default, this method tries to clear the “user immutable” flag and, if necessary, add write permissions to the file itself.

See Also

Locking the Document

- lockDocument:

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

- unlockDocument:

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

- lockDocumentWithCompletionHandler:

Prevents the user from making further changes to the document.

- lockWithCompletionHandler:

Prevents the user from making changes to the document's file.

- unlockDocumentWithCompletionHandler:

Allows the user to make modifications to the document.

locked

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