Instance Property


The slider type, either linear or circular.


var sliderType: NSSlider.SliderType { get set }


The value of this property is a constant indicating the type of the slider. Possible values are described in NSSlider.SliderType.

When the value of this property is NSCircularSlider, then you get a fixed-size circular slider. The minimum value (minValue) is at the top, and the value increases clockwise around the dial. The maximum selectable value is just below maxValue; for example, if maxValue is 360, you can set the dial up to 359.999.

You can use the numberOfTickMarks property to display tick marks, and you can use the allowsTickMarkValuesOnly property to specify that values are limited to those values represented by tick marks. You can set this control to regular or small sizes; the mini size is not supported.