Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSSegmentedControlMBS class.

NSSegmentedControlMBS.cellTrackingMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 15.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The tracking mode used for the segments of the receiver.

Possible values for trackingMode are described in NSSegmentSwitchTracking. The default value is NSSegmentSwitchTrackingSelectOne.

This property was named only trackingMode in 15.1 and older plugins.
(Read and Write property)

NSSegmentedControlMBS.doubleValueForSelectedSegment as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 15.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Query the double value for selected segment.

This message is valid only for trackingMode = NSSegmentSwitchTrackingMomentaryAccelerator and provides the double value for the selected segment.
Available on Mac OS X 10.10.3.
(Read only property)

NSSegmentedControlMBS.segmentCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the number of segments in the receiver.

(Read and Write property)

NSSegmentedControlMBS.segmentStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The visual style used to display the receiver.

See style constants.
Available in Mac OS X v10.5 and later.
(Read and Write property)

Some examples using this property:

NSSegmentedControlMBS.selectedSegment as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The index of the selected segment of the receiver.

The index of the currently selected segment or -1 if no segment is selected. If the receiver allows multiple selections, this method returns the most recently selected segment.
(Read and Write property)

Some examples using this property:

NSSegmentedControlMBS.springLoaded as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 15.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sends action on deep-press or extended hover while dragging.

Defaults to false.
(Read and Write property)

NSSegmentedControlMBS.trackingMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 15.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The type of tracking behavior the control exhibits.

An NSSegmentSwitchTracking value specifies how the control responds when the user presses a keyboard key or clicks, force clicks (applies pressure in a pressure-sensitive system), releases pressure, and so on.

see NSSegmentSwitchTracking* constants.
Available on Mac OS X 10.10.3 and newer.
(Read and Write property)

Some examples using this property:

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


The biggest plugin in space...