Contents

draw(withFrame:in:characterIndex:layoutManager:)

Draws the cell’s image using the specified layout manager.

Declaration

@MainActor func draw(withFrame cellFrame: NSRect, in controlView: NSView?, characterIndex charIndex: Int, layoutManager: NSLayoutManager)

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.

  • layoutManager:

    The layout manager for the text.

See Also

Drawing the cell contents