Class

NSGroupTouchBarItem

A bar item that provides a bar to contain other items.

Declaration

@interface NSGroupTouchBarItem : NSTouchBarItem

Topics

Creating a Group

+ groupItemWithIdentifier:items:

Initializes and returns a group item whose bar is constructed from the supplied items.

+ groupItemWithIdentifier:items:allowedCompressionOptions:

Initializes and returns a group item whose bar is constructed from the supplied items, and with the specified compression options.

+ alertStyleGroupItemWithIdentifier:

Initializes and returns a group item configured to match system alerts.

Configuring Groups

groupTouchBar

A bar that holds this group's items.

groupUserInterfaceLayoutDirection

The user interface direction that controls the layout order of the items.

Configuring Item Width

prefersEqualWidths

A Boolean value that specifies that items should have equal widths when possible.

preferredItemWidth

The preferred width for items in the group when prefersEqualWidths is YES.

Configuring Item Compression

effectiveCompressionOptions

The compression options that are currently active on the group.

prioritizedCompressionOptions

The allowed compression options, in the order they should be applied.

Configuring Bar Customization

customizationLabel

The user-visible string identifying this item during bar customization.

Relationships

Inherits From

See Also

Touch Bar Items

NSTouchBarItem

A UI control shown in the Touch Bar on supported models of MacBook Pro.

NSCandidateListTouchBarItem

A bar item that, along with its delegate, provides a list of textual suggestions for the current text view.

NSColorPickerTouchBarItem

A bar item that provides a system-defined color picker.

NSCustomTouchBarItem

A bar item that contains a responder of your choice, such as a view, a button, or a scrubber (an instance of the NSScrubber class).

NSPopoverTouchBarItem

A bar item that provides a two-state control that can expand into its second state, showing the contents of a bar that it owns.

NSSharingServicePickerTouchBarItem

A bar item that, along with its delegate, provides a list of objects eligible for sharing.

NSSliderTouchBarItem

A bar item that provides a slider control for choosing a value in a range.

NSUserInterfaceCompressionOptions

An object that specifies how user interface elements resize themselves when space is constrained.