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;

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.