Instance Method

highlight:withFrame:inView:

Redraws the receiver with the specified highlight setting.

Declaration

- (void)highlight:(BOOL)flag withFrame:(NSRect)cellFrame inView:(NSView *)controlView;

Parameters

flag

If YES, the cell is redrawn with a highlight; otherwise, if NO, the highlight is removed.

cellFrame

The bounding rectangle of the receiver.

controlView

The control that manages the cell.

Discussion

Note that the NSCell highlighting does not appear when highlighted cells are printed (although instances of NSTextFieldCell, NSButtonCell, and others can print themselves highlighted). Generally, you cannot depend on highlighting being printed because implementations of this method may choose (or not choose) to use transparency.

See Also

Drawing and Highlighting

- drawWithFrame:inView:

Draws the receiver’s border and then draws the interior of the cell.

- highlightColorWithFrame:inView:

Returns the color the receiver uses when drawing the selection highlight.

- drawInteriorWithFrame:inView:

Draws the interior portion of the receiver, which includes the image or text portion but does not include the border.

controlView

The view associated with the cell.

highlighted

A Boolean value indicating whether the cell has a highlighted appearance.