# NSScroller

ovidiu@net-community.com
far@ix.netcom.com
richard@brainstorm.co.uk
Generated at 2026-02-17 21:02:56 +0000
1996 Free Software Foundation, Inc.
Software documentation for the NSScroller class
AppKit/NSScroller.h
NSCoding

TODO Description

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Description forthcoming.
preferredScrollerStyle
Description forthcoming.
scrollerWidth

Returns the NSScroller's width. By default 18.

Subclasses can override this to provide different scrollbar width. But you may need to also override -drawParts .

scrollerWidthForControlSize:
controlSize
Description forthcoming.
arrowsPosition

Returns the position of the NSScroller's arrows used for scrolling By default the arrow position is set to NSScrollerArrowsMinEnd if the scrolletr is a horizontal scroller and NSScrollerArrowsMaxEnd if the scroller is a vertical scroller. See NSScrollArrowPosition for more informations.

See Also: -arrowsPosition

checkSpaceForParts
Description forthcoming.
controlSize
Description forthcoming.
controlTint
Description forthcoming.
drawArrow:
whichButton
highlight:
flag

(Un)Highlight the button specified by whichButton. whichButton should be NSScrollerDecrementArrow or NSScrollerIncrementArrow

See Also: [NSCell -setHighlighted:] [NSCell -drawWithFrame:inView:]

drawKnob

Draws the knob

drawKnobSlot
Description forthcoming.
drawKnobSlotInRect:
slotRect
highlight:
flag
Description forthcoming.
drawParts
Cache images for scroll arrows and knob. If you override +scrollerWidth you may need to override this as well (to provide images for the new width). However, if you do so, you must currently also override -drawArrow:highlight: and -drawKnob: .
flashScroller
Shows the scroller if it's an overlay scroller. If your theme supports overlay scrollers, you must override this method.
highlight:
flag

Highlights the button whose under the mouse. Does nothing if the mouse is not under a button

See Also: -drawArrow:highlight:

hitPart

Returns the part of the NSScroller that have been hit (mouse down) See NSScrollerPart for more information

See Also: -highlight: [NSResponder -mouseDown:]

knobProportion

Returns a float value (between 0.0 and 1.0) indicating the ratio between the NSScroller length and the knob length

knobStyle
The scroller knob style. By default, NSScrollerStyleDefault. If your theme implements other scroller styles, you must override this method. You may use the ivar _knobStyle for this.
rectForPart:
partCode
Description forthcoming.
scrollerStyle
The scroller style. By default, NSScrollerStyleDefault. If your theme implements other scroller styles, you must override this method. You may use the ivar _scrollerStyle for this.
setArrowsPosition:
where

Sets the position of the NSScroller arrows used for scrolling to where and marks self for display. By default the arrow position is set to NSScrollerArrowsMinEnd if the scroller is a horizontal scroller and NSScrollerArrowsMaxEnd if the scroller is a vertical scroller. See NSScrollArrowPosition for more informations.

See Also: -arrowsPosition

setControlSize:
controlSize
Description forthcoming.
setControlTint:
controlTint
Description forthcoming.
setFloatValue:
aFloat
knobProportion:
ratio
Description forthcoming.
setKnobProportion:
proportion
Description forthcoming.
setKnobStyle:
style
Sets the scroller knob style. In the default theme, this must be NSScrollerKnobStyleDefault. If your theme implements other scroller knob styles, you must override this method. You may use the ivar _scrollerKnobStyle for this.
setScrollerStyle:
style
Sets the scroller style. In the default theme, this must be NSScrollerStyleDefault. If your theme implements other scroller styles, you must override this method. You may use the ivar _scrollerStyle for this.
testPart:
thePoint

Returns the NSScroller's part under the point thePoint. See NSScrollerPart for more informations

trackKnob:
theEvent
Description forthcoming.
trackScrollButtons:
theEvent
Description forthcoming.
usableParts
Description forthcoming.