# NSScroller

ovidiu@net-community.com
far@ix.netcom.com
richard@brainstorm.co.uk
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.
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.
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.
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: .
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

rectForPart:
partCode
Description forthcoming.
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.
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.