Instance Property


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


iOS, Mac Catalyst, tvOS
var editedMask: NSTextStorage.EditActions { get }
var editedMask: NSTextStorageEditActions { get }


This property indicates pending changes for attributes, characters, or both. Use the C bitwise AND operator to test the value against the editedAttributes or editedCharacters constants; testing for equality will fail if additional mask flags are added 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.

See Also

Determining the Nature of Changes

var editedRange: NSRange

The range of text containing changes.

var changeInLength: Int

The difference between the current length of the edited range and its length before editing began.