Instance Method


Ensures that attributes are fixed in the given range.


func ensureAttributesAreFixed(in range: NSRange)



The range of characters whose attributes might be examined.


An NSTextStorage object using lazy attribute fixing is required to call this method before accessing any attributes within range. This method gives attribute fixing a chance to occur if necessary. NSTextStorage subclasses wishing to support laziness must call this method from all attribute accessors they implement.

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.

var fixesAttributesLazily: Bool

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

func invalidateAttributes(in: NSRange)

Invalidates attributes in the specified range.

func processEditing()

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