Draws background marks for the given glyph range, which must lie completely within a single text container.
- iOS 7.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
The range of glyphs for which the background is drawn.
The position of the text container in the coordinate system of the currently focused view.
This method is called by
NSText for drawing. You can override it to perform additional drawing, or to replace text drawing entirely, but not to change layout. You can call this method directly, but focus must already be locked on the destination view or image.
Background marks are such things as selection highlighting, text background color, and any background for marked text, along with block decoration such as table backgrounds and borders.
Performs glyph generation and layout if needed.