Authors

An NSSlider displays, and allows control of, some value in
the application. It represents a continuous stream of
values of type float,
which can be retrieved by the method
floatValue and set by the method
setFloatValue:.

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 setContinuous:
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.

Returns whether or not the slider is vertical. If,
for some reason, this cannot be determined, for such
reasons as the slider is not yet displayed, this
method returns -1. Generally, a slider is considered
vertical if its height is greater than its width.