---
title: hasEditedDocuments
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsdocumentcontroller/hasediteddocuments
---

# hasEditedDocuments

A Boolean value indicating whether the receiver has any documents with unsaved changes.

## Declaration

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

## Discussion

Discussion The value of this property is true if the document controller contains documents with unsaved changes; otherwise, the value is false.

## See Also

### Managing Documents

- [documents](appkit/nsdocumentcontroller/documents.md)
- [addDocument(_:)](appkit/nsdocumentcontroller/adddocument(_:).md)
- [currentDocument](appkit/nsdocumentcontroller/currentdocument.md)
- [document(for:)](appkit/nsdocumentcontroller/document(for:)-a5yd.md)
- [removeDocument(_:)](appkit/nsdocumentcontroller/removedocument(_:).md)
