---
title: "saveTo(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsdocument/saveto(_:)"
---

# saveTo(_:)

The action method invoked in the receiver as first responder when the user chooses the Save To menu command.

## Declaration

```swift
@IBAction func saveTo(_ sender: Any?)
```

## Parameters

- `sender`: The control sending the message.

## Discussion

Discussion The default implementation is identical to saveAs(_:) except that this method doesn’t clear the document’s edited status and doesn’t reset file location and document type if the document is a native type.

## See Also

### Handling User Actions

- [printDocument(_:)](appkit/nsdocument/printdocument(_:).md)
- [runPageLayout(_:)](appkit/nsdocument/runpagelayout(_:).md)
- [revertToSaved(_:)](appkit/nsdocument/reverttosaved(_:).md)
- [save(_:)](appkit/nsdocument/save(_:).md)
- [saveAs(_:)](appkit/nsdocument/saveas(_:).md)
- [save(withDelegate:didSave:contextInfo:)](appkit/nsdocument/save(withdelegate:didsave:contextinfo:).md)
