<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDocument/SaveOperationType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSSaveOperationType"
  },
  "title" : "NSDocument.SaveOperationType"
}
-->

# NSDocument.SaveOperationType

Constants for specifying the type of document-save operation to perform.

```
enum SaveOperationType
```

## Overview

These values are used with method parameters of type [`NSDocument.SaveOperationType`](/documentation/AppKit/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.

## Topics

### Constants

[`NSDocument.SaveOperationType.saveOperation`](/documentation/AppKit/NSDocument/SaveOperationType/saveOperation)

An operation that overwrites a document’s file or file package with the document’s contents.

[`NSDocument.SaveOperationType.saveAsOperation`](/documentation/AppKit/NSDocument/SaveOperationType/saveAsOperation)

An operation that writes the document’s contents to a new location and updates the document to point to that location

[`NSDocument.SaveOperationType.saveToOperation`](/documentation/AppKit/NSDocument/SaveOperationType/saveToOperation)

An operation that writes a copy of the document’s contents to the specified location, without changing the original document’s location.

[`NSDocument.SaveOperationType.autosaveElsewhereOperation`](/documentation/AppKit/NSDocument/SaveOperationType/autosaveElsewhereOperation)

An operation that writes an autosave version of the file to a different location.

[`NSDocument.SaveOperationType.autosaveInPlaceOperation`](/documentation/AppKit/NSDocument/SaveOperationType/autosaveInPlaceOperation)

An operation that overwrites the document’s current contents with autosave data.

[`NSDocument.SaveOperationType.autosaveAsOperation`](/documentation/AppKit/NSDocument/SaveOperationType/autosaveAsOperation)

An operation that 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.

[`NSAutosaveOperation`](/documentation/AppKit/NSSaveOperationType/NSAutosaveOperation)

Old name for the [`NSDocument.SaveOperationType.autosaveElsewhereOperation`](/documentation/AppKit/NSDocument/SaveOperationType/autosaveElsewhereOperation) operation type.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)