---
title: NSDocument.SaveOperationType
framework: appkit
role: symbol
role_heading: Enumeration
path: appkit/nsdocument/saveoperationtype
---

# NSDocument.SaveOperationType

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

## Declaration

```swift
enum SaveOperationType
```

## Overview

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

## Topics

### Constants

- [NSDocument.SaveOperationType.saveOperation](appkit/nsdocument/saveoperationtype/saveoperation.md)
- [NSDocument.SaveOperationType.saveAsOperation](appkit/nsdocument/saveoperationtype/saveasoperation.md)
- [NSDocument.SaveOperationType.saveToOperation](appkit/nsdocument/saveoperationtype/savetooperation.md)
- [NSDocument.SaveOperationType.autosaveElsewhereOperation](appkit/nsdocument/saveoperationtype/autosaveelsewhereoperation.md)
- [NSDocument.SaveOperationType.autosaveInPlaceOperation](appkit/nsdocument/saveoperationtype/autosaveinplaceoperation.md)
- [NSDocument.SaveOperationType.autosaveAsOperation](appkit/nsdocument/saveoperationtype/autosaveasoperation.md)

### Initializers

- [init(rawValue:)](appkit/nsdocument/saveoperationtype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Writing the Document’s Content

- [canAsynchronouslyWrite(to:ofType:for:)](appkit/nsdocument/canasynchronouslywrite(to:oftype:for:).md)
- [unblockUserInteraction()](appkit/nsdocument/unblockuserinteraction().md)
- [write(to:ofType:)](appkit/nsdocument/write(to:oftype:).md)
- [writeSafely(to:ofType:for:)](appkit/nsdocument/writesafely(to:oftype:for:).md)
- [fileWrapper(ofType:)](appkit/nsdocument/filewrapper(oftype:).md)
- [data(ofType:)](appkit/nsdocument/data(oftype:).md)
- [write(to:ofType:for:originalContentsURL:)](appkit/nsdocument/write(to:oftype:for:originalcontentsurl:).md)
- [save(to:ofType:for:delegate:didSave:contextInfo:)](appkit/nsdocument/save(to:oftype:for:delegate:didsave:contextinfo:).md)
- [save(to:ofType:for:completionHandler:)](appkit/nsdocument/save(to:oftype:for:completionhandler:).md)
- [fileAttributesToWrite(to:ofType:for:originalContentsURL:)](appkit/nsdocument/fileattributestowrite(to:oftype:for:originalcontentsurl:).md)
