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

# editedMask

A mask that describes the kinds of edits pending for the text storage object.

```
var editedMask: NSTextStorageEditActions { get }
```

## Discussion

This property indicates pending changes for attributes, characters, or both. Use the C bitwise AND operator to test the value against the [`editedAttributes`](/documentation/AppKit/NSTextStorageEditActions/editedAttributes) or [`editedCharacters`](/documentation/AppKit/NSTextStorageEditActions/editedCharacters) constants; testing for equality fails if you add additional mask flags later. The text storage object’s associated delegate and layout managers can use this information to determine the nature of edits in their respective notification methods.

---

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)