Instance Method

drawWithFrame:inView:characterIndex:

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

Required.

Declaration

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

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.

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:layoutManager:

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

Required.

- highlight:withFrame:inView:

Draws the receiver’s image with optional highlighting.

Required.