Instance Method

knobRectFlipped:

Returns the rectangle in which the slider knob is drawn.

Declaration

- (NSRect)knobRectFlipped:(BOOL)flipped;

Parameters

flipped

YES if the coordinate system of the associated NSSlider or NSMatrix is flipped; otherwise NO. You can determine whether this is the case by sending the NSView message flipped message to the NSMatrix or NSSlider.

Return Value

The rectangle in which the knob is drawn, specified in the coordinate system of the NSSlider or NSMatrix with which the receiver is associated.

The knob rectangle depends on where in the slider the knob belongs—that is, it depends on the receiver’s minimum and maximum values and on the value the position of the knob will represent.

See Also

Displaying the Cell

- barRectFlipped:

Returns the rectangle in which the bar is drawn.

- drawTickMarks

Draws the slider’s tick marks.

- drawBarInside:flipped:

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

- drawKnob

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

- drawKnob:

Draws the slider knob in the given rectangle.