Contents

isLocked

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

Declaration

var isLocked: Bool { get }

Discussion

This property may contain the value true because the user lacks the appropriate write permissions, the “user immutable” flag was raised, the parent directory or volume is read only, or the checkAutosavingSafety() method returned false. Do not override this property.

See Also

Locking the Document