drawKnobSlot(in: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
func drawKnobSlot(in slotRect: NSRect, highlight flag: Bool)Parameters
- slotRect:
The rectangle in which to draw the knob slot.
- flag:
If
flagis True, any scroll arrow button that falls withinslotRectis 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.