Deprecated NSScroller Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in OS X v10.5

setFloatValue:knobProportion:

Sets the position of the knob to aFloat, which is a value from 0.0 (indicating the top or left end) to 1.0 (the bottom or right end). (Deprecated in OS X v10.5. Code that targets OS X v10.5 and later should use setKnobProportion: and setDoubleValue:.)

- (void)setFloatValue:(float)aFloat knobProportion:(CGFloat)knobProp
Discussion

Also sets the proportion of the knob slot filled by the knob to knobProp, also a value from 0.0 (minimal size) to 1.0 (fills the slot).

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.5.
See Also
Declared In
NSScroller.h

Deprecated in OS X v10.7

drawParts

Caches images for the scroll buttons and knob. (Deprecated in OS X v10.7.)

- (void)drawParts
Discussion

It’s invoked only once when the scroller is created. You may want to override this method if you alter the look of the scroller, but you should never invoke it directly.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.7.
Declared In
NSScroller.h