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

NSSlider — Mac OS X 10.0

Synopsis

This subclass of NSControl represents a slider control where a user manipulates a knob to select from a range of values: for example, the control in the Volume menu item. The cell for NSSlider is NSSliderCell.

image with no caption

@interface NSSlider : NSControl
                                  // Accessor Methods
   - (void)setTitleFont:(NSFont *)fontObj;
   - (NSFont *)titleFont;
   - (void)setMinValue:(double)aDouble;
   - (double)minValue;
   - (void)setMaxValue:(double)aDouble;
   - (double)maxValue;
   - (void)setAltIncrementValue:(double)incValue;
   - (double)altIncrementValue;
   - (void)setTitleCell:(NSCell *)aCell;
   - (id)titleCell;
   - (void)setTitleColor:(NSColor *)newColor;
   - (NSColor *)titleColor;
   - (void)setTitle:(NSString *)aString;
   - (NSString *)title;
   - (void)setKnobThickness:(float)aFloat;
   - (float)knobThickness;
   - (void)setImage:(NSImage *)backgroundImage;
   - (NSImage *)image;
                                  // Instance Methods
   - (BOOL)acceptsFirstMouse:(NSEvent *)theEvent;
   - (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