Instance Property

hasUnautosavedChanges

A Boolean value that indicates whether the document has changes that have not been autosaved.

Declaration

@property(readonly) BOOL hasUnautosavedChanges;

Discussion

The value of this property is YES if the document has changes that have not been autosaved; otherwise, the value is NO. A document has unsaved changes when the updateChangeCount: method has been called since the last save.

See Also

Autosaving the Document

- checkAutosavingSafetyAndReturnError:

Returns a Boolean value that indicates whether it is safe to autosave document changes.

- scheduleAutosaving

Schedules periodic autosaving for the purpose of crash protection.

- autosaveDocumentWithDelegate:didAutosaveSelector:contextInfo:

Autosaves the document’s contents to an appropriate location in the file system.

- autosaveWithImplicitCancellability:completionHandler:

Autosaves the document’s contents to an appropriate file-system location, as needed.

backupFileURL

The URL for the document’s backup file that was created during an autosave operation.