---
title: saveOptions
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsclosecommand/saveoptions
---

# saveOptions

Returns a constant indicating how to deal with closing any modified documents.

## Declaration

```swift
var saveOptions: NSSaveOptions { get }
```

## Return Value

Return Value A constant indicating how to deal with closing any modified documents. The default value returned is NSSaveOptionsAsk. See Constants for a list of possible return values.

## See Also

### Related Documentation

- [Cocoa Scripting Guide](apple-archive/documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_intro/SAppsIntro.html.md)
