Contents

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

Creates a grouped toolbar item with images.

Declaration

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

Parameters

  • itemIdentifier:

    The identifier for the grouped toolbar item.

  • images:

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

  • selectionMode:

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

  • labels:

    Labels that correspond to the specified images.

  • 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