---
title: hasUnautosavedChanges
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsdocument/hasunautosavedchanges
---

# hasUnautosavedChanges

A Boolean value that indicates whether the document has changes that have not been autosaved.

## Declaration

```swift
var hasUnautosavedChanges: Bool { get }
```

## Discussion

Discussion The value of this property is true if the document has changes that have not been autosaved; otherwise, the value is false. A document has unsaved changes when the updateChangeCount(_:) method has been called since the last save.

## See Also

### Autosaving the Document

- [checkAutosavingSafety()](appkit/nsdocument/checkautosavingsafety().md)
- [scheduleAutosaving()](appkit/nsdocument/scheduleautosaving().md)
- [autosave(withDelegate:didAutosave:contextInfo:)](appkit/nsdocument/autosave(withdelegate:didautosave:contextinfo:).md)
- [autosave(withImplicitCancellability:completionHandler:)](appkit/nsdocument/autosave(withimplicitcancellability:completionhandler:).md)
- [backupFileURL](appkit/nsdocument/backupfileurl.md)
