Instance Method

drawKnobSlotInRect:highlight:

Draws the portion of the scroller’s track, possibly including the line increment and decrement arrow buttons, that falls in the given rectangle.

Declaration

- (void)drawKnobSlotInRect:(NSRect)slotRect highlight:(BOOL)flag;

Parameters

slotRect

The rectangle in which to draw the knob slot.

flag

If flag is YES, any scroll arrow button that falls within slotRect is drawn highlighted; otherwise it's drawn normally.

Discussion

Only one arrow button will be shown highlighted at a time, so you can expect this method to sometimes be invoked with a slotRect that encompasses only one arrow.

See Also

Drawing Scroller Parts

- drawArrow:highlight:

Draws the scroll button indicated by arrow, which is either NSScrollerIncrementArrow (the down or right scroll button) or NSScrollerDecrementArrow (up or left).

Deprecated
- drawKnob

Draws the knob.

- drawParts

Caches images for the scroll buttons and knob.

Deprecated
- highlight:

Highlights or unhighlights the scroll button the user clicked.

Deprecated