Instance Method

invalidateDisplay(forGlyphRange:)

Invalidates a range of glyphs, requiring new layout information, and updates the appropriate regions of any text views that display those glyphs.

Declaration

func invalidateDisplay(forGlyphRange glyphRange: NSRange)

Parameters

glyphRange

The range of glyphs to invalidate.

Discussion

You should rarely need to invoke this method.

See Also

Invalidating Glyphs and Layout

func invalidateDisplay(forCharacterRange: NSRange)

Invalidates display for the specified character range.

func invalidateLayout(forCharacterRange: NSRange, actualCharacterRange: NSRangePointer?)

Invalidates the layout information for the glyphs mapped to the specified character range.

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

Notifies the layout manager that the contents of its text storage object changed due to an edit action.