Instance Method


Invalidates the layout information for the glyphs mapped to the given range of characters.


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



The range of characters to invalidate.


If not NULL, on output, the actual range invalidated after any necessary expansion.


This method has the same effect as invalidateLayout(forCharacterRange:isSoft:actualCharacterRange:) with flag set to false.

This method only invalidates information; it performs no glyph generation or layout. You should rarely need to invoke this method.

See Also

Invalidating Glyphs and Layout

func invalidateDisplay(forCharacterRange: NSRange)

Invalidates display for the given character range.

func invalidateDisplay(forGlyphRange: NSRange)

Marks the glyphs in the given glyph range as needing display, as well as the appropriate regions of the NSTextView objects that display those glyphs (using the NSView method setNeedsDisplay(_:)).

func invalidateGlyphs(forCharacterRange: NSRange, changeInLength: Int, actualCharacterRange: NSRangePointer?)

Invalidates the cached glyphs for the characters in the given character range, adjusts the character indices of all the subsequent glyphs by the change in length, and invalidates the new character range.