draw(withFrame:in:characterIndex:)
Draws the cell’s image at the specified index point in the view.
Declaration
@MainActor func draw(withFrame cellFrame: NSRect, in controlView: NSView?, characterIndex charIndex: Int)Parameters
- cellFrame:
The frame rectangle in which to draw.
- controlView:
The view in which to draw.
- charIndex:
The index of the attachment character within the text.