Enumeration Case

NSDocument.SaveOperationType.autosaveElsewhereOperation

An Autosave Elsewhere operation, which writes a document’s contents to a file or file package that is separate from the document’s current location, without changing the document’s current location.

Declaration

case autosaveElsewhereOperation = 3

Discussion

For an NSDocument subclass that overrides autosavesInPlace to have the value true, this is used during autosaving of documents that have never been saved and therefore do not yet have a document file that can be overwritten during autosaving. NSDocument may also pass NSAutosaveElsewhereOperation when invoking writeSafelyToURL:ofType:forSaveOperation:error: while duplicating or reverting a document.