Class

NSSliderTouchBarItem

A bar item that provides a slider control for choosing a value in a range.

Topics

Configuring the Slider

var slider: NSSlider

The slider displayed by the bar item.

var label: String?

The text displayed alongside the slider.

Configuring Slider Accessories

var minimumValueAccessory: NSSliderAccessory?

The accessory that appears at the end of the slider with the minimum value.

var maximumValueAccessory: NSSliderAccessory?

The accessory that appears at the end of the slider with the maximum value.

var valueAccessoryWidth: NSSliderAccessory.Width

The width of the value accessories that appear at either end of the slider.

Handling Slider Interaction

var target: AnyObject?

An object that is notified when a user interacts with the slider or either of the accessories.

var action: Selector?

The selector on the target object that is invoked when a user interacts with the slider or either of the accessories.

Configuring Bar Customization

var customizationLabel: String!

The user-visible string identifying this item during bar customization.

Relationships

Inherits From

Conforms To

See Also

Touch Bar Items

class NSTouchBarItem

A UI control shown in the Touch Bar on supported models of MacBook Pro.

class NSCandidateListTouchBarItem

A bar item that, along with its delegate, provides a list of textual suggestions for the current text view.

class NSColorPickerTouchBarItem

A bar item that provides a system-defined color picker.

class NSCustomTouchBarItem

A bar item that contains a responder of your choice, such as a view, a button, or a scrubber (an instance of the NSScrubber class).

class NSGroupTouchBarItem

A bar item that provides a bar to contain other items.

class NSPopoverTouchBarItem

A bar item that provides a two-state control that can expand into its second state, showing the contents of a bar that it owns.

class NSSharingServicePickerTouchBarItem

A bar item that, along with its delegate, provides a list of objects eligible for sharing.