Instance Method

drawWithFrame:inView:characterIndex:layoutManager:

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

Required.

Declaration

- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView characterIndex:(NSUInteger)charIndex layoutManager:(NSLayoutManager *)layoutManager;

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

- drawWithFrame:inView:

Draws the cell's image in the specified rectangle of the currently focused view.

Required.

- drawWithFrame:inView:characterIndex:

Draws the cell's image at the specified index point in the view.

Required.

- highlight:withFrame:inView:

Draws the receiver’s image with optional highlighting.

Required.