Contents

init(itemIdentifier:titles:selectionMode:labels:target:action:)

Creates a grouped toolbar item with labels.

Declaration

convenience init(itemIdentifier: NSToolbarItem.Identifier, titles: [String], selectionMode: NSToolbarItemGroup.SelectionMode, labels: [String]?, target: Any?, action: Selector?)

Parameters

  • itemIdentifier:

    The identifier for the grouped toolbar item.

  • titles:

    An array of titles to present as subitems in the grouped toolbar item.

  • selectionMode:

    A Boolean value that indicates how the grouped toolbar item presents selections.

  • labels:

    Labels that correspond to the specified titles.

  • target:

    The target that the toolbar calls upon selection.

    If target is nil, the toolbar attempts to invoke the specified action on the first responder and, failing that, passes the action up the responder chain.

  • action:

    The selector that the toolbar invokes on the target.

See Also

Creating grouped toolbar items