Instance Method


Invalidates attributes in the specified range.


func invalidateAttributes(in range: NSRange)



The range of characters whose attributes should be invalidated.


Called from processEditing() to invalidate attributes when the text storage changes. If the receiver is not lazy, this method simply calls fixAttributes(in:). If lazy attribute fixing is in effect, this method instead records the range needing fixing.

See Also

Handling Text Editing Messages

func edited(NSTextStorage.EditActions, range: NSRange, changeInLength: Int)

Tracks changes made to the receiver, allowing the text storage to record the full extent of changes made.

func ensureAttributesAreFixed(in: NSRange)

Ensures that attributes are fixed in the given range.

var fixesAttributesLazily: Bool

A Boolean value indicating whether the text storage object fixes attributes lazily.

func processEditing()

Cleans up changes made to the receiver and notifies its delegate and layout managers of changes.