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

# NSDocument.ChangeType.changeDiscardable

A discardable change has been done.

```
case changeDiscardable
```

## Discussion

Discardable changes cause the document to be edited. In a locked document, for example, discardable changes may be thrown away instead of prompting the user to save them. Combine this value with the appropriate kind of change, [`NSDocument.ChangeType.changeDone`](/documentation/AppKit/NSDocument/ChangeType/changeDone), [`NSDocument.ChangeType.changeUndone`](/documentation/AppKit/NSDocument/ChangeType/changeUndone), or [`NSDocument.ChangeType.changeRedone`](/documentation/AppKit/NSDocument/ChangeType/changeRedone), using the C bitwise OR operator. For example, a discardable change is `NSChangeDone | NSChangeDiscardable`.

---

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)