Contents

isSelected(at:)

Indicates whether a specified index is currently selected.

Declaration

func isSelected(at index: Int) -> Bool

Parameters

  • index:

    The index of the subitems in a grouped toolbar item.

Return Value

A Boolean value indicating whether the specified index is currently selected.

Discussion

Use this method when you specify the NSToolbarItemGroup.SelectionMode.selectAny selection mode for the grouped toolbar item to determine which subitems are currently selected.

See Also

Working with subitems