updateChangeCount(withToken:for:)
Updates the document’s change count settings after a successful save operation.
Declaration
func updateChangeCount(withToken changeCountToken: Any, for saveOperation: NSDocument.SaveOperationType)Parameters
- changeCountToken:
An object encapsulating the document changes, returned from Changecounttoken(for:).
- saveOperation:
The type of save operation.
Discussion
This method updates the values in the isDocumentEdited and hasUnautosavedChanges properties. For example, save(to:ofType:for:completionHandler:) invokes this method, on the main thread, when it is done saving. The default implementation of this method also sends all of the document’s window controllers setDocumentEdited(_:) messages when appropriate.