O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSSliderCell — Mac OS X 10.0

Synopsis

This is the NSCell subclass for the NSSlider control class, which is an interface element that allows the user to select a value from a range of values by sliding a knob along a track.

image with no caption

@interface NSSliderCell : NSActionCell
                                  // Accessor Methods
   - (void)setTitleColor:(NSColor *)newColor;
   - (NSColor *)titleColor;
   - (void)setMinValue:(double)aDouble;
   - (double)minValue;
   - (void)setMaxValue:(double)aDouble;
   - (double)maxValue;
   - (void)setAltIncrementValue:(double)incValue;
   - (double)altIncrementValue;
   - (void)setNumberOfTickMarks:(int)count;
   - (int)numberOfTickMarks;
   - (void)setTickMarkPosition:(NSTickMarkPosition)position;
   - (NSTickMarkPosition)tickMarkPosition;
   - (void)setKnobThickness:(float)aFloat;
   - (float)knobThickness;
   - (void)setTitleFont:(NSFont *)fontObj;
   - (NSFont *)titleFont;
   - (void)setAllowsTickMarkValuesOnly:(BOOL)yorn;
   - (BOOL)allowsTickMarkValuesOnly;
   - (void)setTitle:(NSString *)aString;
   - (NSString *)title;
   - (void)setTitleCell:(NSCell *)aCell;
   - (id)titleCell;
                                  // Class Methods
   + (BOOL)prefersTrackingUntilMouseUp;
                                  // Instance Methods
   - (double)closestTickMarkValueToValue:(double)value;
   - (void)drawBarInside:(NSRect)aRect 
                                 flipped:(BOOL)flipped;
   - (void)drawKnob;
   - (void)drawKnob:(NSRect)knobRect;
   - (int)indexOfTickMarkAtPoint:(NSPoint)point;
   - (int)isVertical ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required