Instance Property

locked

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

Declaration

@property(getter=isLocked, readonly) BOOL locked;

Discussion

This property may contain the value YES because the user lacks the appropriate write permissions, the “user immutable” flag was raised, the parent directory or volume is read only, or the checkAutosavingSafetyAndReturnError: method returned NO. Do not override this property.

See Also

Locking Documents

- 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 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.