Contents

NSSlider

A display of a bar representing a continuous range of numerical values and a knob representing the currently selected value.

Declaration

class NSSlider

Overview

A slider is a UI element that displays a range of values in the app. Sliders can be vertical or horizontal bars or circular dials. An indicator, or knob, notes the current setting. The user can move the knob in the slider’s bar—or rotate the knob in a circular slider—to change the setting.

The NSSlider class uses the NSSliderCell class to implement its user interface.

Topics

Creating sliders

Managing the slider’s appearance

Asking about the value limits

Handling mouse-down events

Managing tick marks

Instance Properties