---
title: NSDocument.SaveOperationType.autosaveElsewhereOperation
framework: appkit
role: symbol
role_heading: Case
path: appkit/nsdocument/saveoperationtype/autosaveelsewhereoperation
---

# NSDocument.SaveOperationType.autosaveElsewhereOperation

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

## Declaration

```swift
case autosaveElsewhereOperation
```

## Discussion

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.

## See Also

### 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.autosaveInPlaceOperation](appkit/nsdocument/saveoperationtype/autosaveinplaceoperation.md)
- [NSDocument.SaveOperationType.autosaveAsOperation](appkit/nsdocument/saveoperationtype/autosaveasoperation.md)
