Records the fact that saving has succeeded and updates related aspects of the change count mechanism.
SDK
- macOS 10.7+
Framework
- App
Kit
Declaration
func updateChangeCount(withToken changeCountToken: Any, for saveOperation: NSDocument.Save Operation Type)
Parameters
changeCountToken
An object encapsulating the document changes, returned from
change
.Count Token(for:) saveOperation
The type of save operation.
Discussion
This method updates the values in the is
and has
properties. For example, save(to:
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 set
messages when appropriate.