<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDocument/ChangeType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSDocumentChangeType"
  },
  "title" : "NSDocument.ChangeType"
}
-->

# NSDocument.ChangeType

Values that indicate a document’s edit status.

```
enum ChangeType
```

## Overview

These constants indicate how a document should operate on its change count and are passed to the [`updateChangeCount(_:)`](/documentation/AppKit/NSDocument/updateChangeCount(_:)) method.

## Topics

### Constants

[`NSChangeDone`](/documentation/AppKit/NSDocument/ChangeType/changeDone)

Increment change count.

[`NSChangeUndone`](/documentation/AppKit/NSDocument/ChangeType/changeUndone)

Decrement change count.

[`NSChangeCleared`](/documentation/AppKit/NSDocument/ChangeType/changeCleared)

Set change count to 0.

[`NSChangeReadOtherContents`](/documentation/AppKit/NSDocument/ChangeType/changeReadOtherContents)

The document has been initialized with the contents of a file or file package other than the one whose location is in the `fileURL` property, and therefore can’t possibly be synchronized with its persistent representation.

[`NSChangeAutosaved`](/documentation/AppKit/NSDocument/ChangeType/changeAutosaved)

The document’s contents have been autosaved.

[`NSChangeRedone`](/documentation/AppKit/NSDocument/ChangeType/changeRedone)

A single change has been redone.

[`NSChangeDiscardable`](/documentation/AppKit/NSDocument/ChangeType/changeDiscardable)

A discardable change has been done.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)