Copyright: (C) 1996 Free Software Foundation, Inc.
An NSSlider displays, and allows control of, some value in
the application. It represents a continuous stream of
values of type
which can be retrieved by the method
floatValue and set by the method
This control is a continuous control. It sends its action
message as long as the user is
manipulating it. This can be changed by passing
NO to the
message of a given NSSlider.
Although methods for adding and managing a title are provided, the slider's knob can cover this title, so it is recommended that a label be added near the slider, for identification.
As with many controls, NSSlider relies on its cell counterpart, NSSliderCell. For more information, please see the specification for NSSliderCell.
Use of an NSSlider to do the role of an NSScroller is not recommended. A scroller is intended to represent the visible portion of a view, whereas a slider is intended to represent some value.
- Declared in:
YESby default. This will allow the first click sent to the slider, when in an inactive window, to both bring the window into focus and manipulate the slider.
Returns the value by which the slider will be incremented if the user holds down the ALT key.
See Also: -setAltIncrementValue:
Returns the image drawn in the slider's track.
nil if this has not been
See Also: -setImage:
Returns the maximum value that the slider represents.
See Also: -setMaxValue:
Returns the minimum value that the slider represents.
See Also: -setMinValue:
Sets the value by which the slider will be incremented, when the ALT key is held down, to increment.
See Also: -altIncrementValue
Sets the image to be displayed in the slider's track to barImage.
See Also: -image
Sets the thickness of the knob to aFloat, in pixels. This value sets the amount of space which the knob takes up in the slider's track.
See Also: -knobThickness
Sets the maximum value that the sliders represents to aDouble.
See Also: -maxValue
Sets the minimum value that the slider represents to aDouble.
See Also: -minValue
Sets the title of the slider to aString. This title is displayed on the slider's track, behind the knob.
See Also: -title
Sets the cell used to draw the title to aCell.
See Also: -titleCell
Sets the colour with which the title will be drawn to aColor.
See Also -titleColor
Sets the font with which the title will be drawm to fontObject.
See Also: -titleFont
Returns the title of the slider as an
See Also: -setTitle:
Returns the cell used to draw the title.
See Also: -setTitleCell:
Returns the colour used to draw the title.
See Also: -setTitleColor:
Returns the font used to draw the title.
See Also: -setTitleFont: