selectedIndex
The index value for the most recently selected subitem of a grouped toolbar item.
Declaration
var selectedIndex: Int { get set }Discussion
When using the NSToolbarItemGroup.SelectionMode.selectAny or NSToolbarItemGroup.SelectionMode.momentary selection mode, don’t assume that this value represents the selected subitem. This method returns the index of the most recently selected subitem.
To determine if a specific subitem of a grouped toolbar item is selected, use the isSelected(at:) method.