Enumeration

NSDocument.SaveOperationType

A save operation type specifies the type of document save operation to perform. These values are used with method parameters of type NSDocument.SaveOperationType. Depending on the method, the save operation type can affect the title of the Save dialog and can affect which files are displayed in the dialog.

Declaration

enum SaveOperationType : UInt

Topics

Constants

case saveOperation

A Save operation, which overwrites a document’s file or file package with the document’s contents.

case saveAsOperation

A Save As operation, which writes a document’s contents to a new file or file package and then changes the document’s current location to point to the just-written file or file package.

case saveToOperation

A Save To operation, which writes a document’s contents to a new file or file package without changing the document’s current location to point to the new file or package.

case 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.

case autosaveInPlaceOperation

An Autosave In Place operation, which overwrites a document’s file or file package with the document’s current contents even though the user has not explicitly requested it.

case autosaveAsOperation

An Autosave As operation, which writes a document’s contents to a new file or file package even though the user has not explicitly requested it, then changes the document’s current location to point to the just-written file or file package.