(Preliminary Documentation) Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

NSScroller 

Inherits From:	NSControl : NSView : NSResponder : NSObject 

Declared In:	appkit/NSScroller.h 

Laying out the NSScroller 

+ (float)scrollerWidth	Returns the width of the scoller, a constant value.
- (NSRect)rectForPart:(NSScrollerPart)partCode	Gets the rectangle that encloses partCode.
- (void)checkSpaceForParts	Checks for room for knob and scroll buttons.
- (void)setArrowsPosition:(NSScrollArrowPosition)where
	Sets position of scroll arrows in the NSScroller.

Setting NSScroller Values 

- (void)setFloatValue:(float)aFloat	 
knobProportion:(float)percent	Sets value of NSScroller and positions and sizes knob. 

Displaying 

- (void)drawArrow:(BOOL)whichButton	Draws highlighted and unhighlighted arrows.
highlight:(BOOL)flag	
- (void)drawKnob	Draws the knob.
- (void)drawParts	Caches bitmaps for knob and scroll arrows.
- (void)highlight:(BOOL)flag	Highlights scroll button that's under mouse.

Handling Events 

- (NSScrollerPart)hitPart	Returns the part of the NSScroller object that received mouse-down.
- (NSScrollerPart)testPart:(NSPoint)thePoint	Returns the part of the NSScroller that's under thePoint. 
- (void)trackKnob:(NSEvent *)theEvent	Invoked in response to mouse-down events on the knob.
- (void)trackScrollButtons:(NSEvent *)theEvent	Invoked in response to mouse-down events on buttons.