Instance Method

drawKnob

Calculates the rectangle in which the knob should be drawn, then calls drawKnob: to actually draw the knob.

Declaration

- (void)drawKnob;

Discussion

Before this message is sent, a lockFocus method must be sent to the cell’s control view.

You might call this method if you override one of the display methods belonging to NSControl or NSCell.

Special Considerations

If you create a subclass of NSSliderCell, don’t override this method. Override drawKnob: instead.

See Also

Displaying the Cell

- barRectFlipped:

Returns the rectangle in which the bar is drawn.

- drawTickMarks

Draws the slider’s tick marks.

- knobRectFlipped:

Returns the rectangle in which the slider knob is drawn.

- drawBarInside:flipped:

Draws the slider’s bar—but not its bezel or knob—inside the specified rectangle.

- drawKnob:

Draws the slider knob in the given rectangle.