<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDocument/isDocumentEdited",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDocument(py)documentEdited"
  },
  "title" : "isDocumentEdited"
}
-->

# isDocumentEdited

A Boolean value that indicates whether the document has unsaved changes.

```
var isDocumentEdited: Bool { get }
```

## Discussion

The value of this property is <doc://com.apple.documentation/documentation/Swift/true> if the document has been edited. The edited status of each document window reflects the document’s edited status.

## See Also

[`-  updateChangeCount:`](/documentation/AppKit/NSDocument/updateChangeCount(_:))

Updates the receiver’s change count according to the given change type.

[`documentEdited`](/documentation/AppKit/NSWindow/isDocumentEdited)

A Boolean value that indicates whether the window’s document has been edited.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)