Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSSliderMBS class.

NSSliderMBS.allowsTickMarkValuesOnly as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value indicating whether the receiver fixes its values to those values represented by its tick marks.

True if the slider fixes its values to the values represented by its tick marks; otherwise, false.
(Read and Write property)

Some examples using this property:

NSSliderMBS.altIncrementValue as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The amount by which the receiver changes its value when the user Option–drags the slider knob.

The amount by which the value changes when the user drags the slider knob with the Option key held down. Unless you assign a value to AltIncrementValue, altIncrementValue returns –1.0, and the receiver behaves no differently with the Option key down than with it up.
(Read and Write property)

NSSliderMBS.image as NSImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
This method has been deprecated. Returns nil.

The slider may scale and distort barImage to fit inside the bar.

The knob may cover part of the image. If you want the image to be visible all the time, you're better off placing it near the slider.

This method has been deprecated by Apple.
(Read and Write property)

NSSliderMBS.isVertical as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns an integer indicating the orientation (horizontal or vertical) of the slider.

1 if the receiver is vertical, 0 if it's horizontal, and –1 if the orientation can't be determined (for example, if the slider hasn't been displayed yet). A slider is defined as vertical if its height is greater than its width.

Settable with macOS 10.12.
(Read and Write property)

NSSliderMBS.knobThickness as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The knob's thickness, in pixels.

The thickness of the slider knob. The thickness is defined to be the extent of the knob along the long dimension of the bar. In a vertical slider, then, a knob's thickness is its height; in a horizontal slider, a knob's thickness is its width.
(Read and Write property)

NSSliderMBS.maxValue as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The maximum value the receiver can send to its target.

The slider's maximum value. A horizontal slider sends its maximum value when the knob is at the right end of the bar; a vertical slider sends it when the knob is at the top.
(Read and Write property)

NSSliderMBS.minValue as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
the minimum value the receiver can send to its target.

The slider's minimum value. A vertical slider sends its minimum value when its knob is at the bottom; a horizontal slider, when its knob is all the way to the left.
(Read and Write property)

NSSliderMBS.numberOfTickMarks as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The number of tick marks associated with the receiver.

The number of the slider's tick marks.The tick marks assigned to the minimum and maximum values are included.
(Read and Write property)

NSSliderMBS.sliderType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The slider type.

Either NSLinearSlider or NSCircularSlider.
(Read and Write property)

Some examples using this property:

NSSliderMBS.tickMarkPosition as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
How the receiver's tick marks are aligned with it.

A constant indicating the position of the tick marks. Possible values are NSTickMarkBelow, NSTickMarkAbove, NSTickMarkLeft, and NSTickMarkRight (the last two are for vertical sliders). The default alignments are NSTickMarkBelow and NSTickMarkLeft.
(Read and Write property)

NSSliderMBS.title as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The receiver's title.

The default title is the empty string.
(Read and Write property)

NSSliderMBS.titleCell as NSCellMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets the cell used to draw the receiver's title.

You only need to invoke this method if the default title cell, NSTextFieldCell, doesn't suit your needs—that is, you want to display the title in a manner that NSTextFieldCell doesn't permit. When you do choose to override the default, titleCell should be an instance of a subclass of NSTextFieldCell.

This method has been deprecated by Apple.
(Read and Write property)

NSSliderMBS.titleColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets the color used to draw the receiver's title.

This method has been deprecated by Apple.
(Read and Write property)

NSSliderMBS.titleFont as NSFontMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets the font used to draw the receiver's title.

This method has been deprecated by Apple.
(Read and Write property)

NSSliderMBS.trackFillColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 22.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The color of the filled portion of the slider track, in appearances that support it.

Requires macOS 10.12.2 or newer.
(Read and Write property)

The items on this page are in the following plugins: MBS MacControls Plugin.


The biggest plugin in space...