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.

Declaration

@interface NSPopoverTouchBarItem : NSTouchBarItem

Topics

Configuring the Collapsed Popover

collapsedRepresentation

The view displayed when this item is displayed in its parent bar.

collapsedRepresentationImage

The image displayed by the button for the default collapsed representation.

collapsedRepresentationLabel

The localized string displayed by the button for the default collapsed representation.

Configuring the Expanded Popover

popoverTouchBar

The bar displayed when this item is "popped."

showsCloseButton

A Boolean value that determines whether a close button should be shown on the popover bar.

pressAndHoldTouchBar

The bar that is displayed when a user press-and-holds on the popover item.

Expanding and Collapsing a Popover

- showPopover:

Replaces the main bar with this item's popover bar.

- dismissPopover:

Restores the previously visible main bar.

- makeStandardActivatePopoverGestureRecognizer

Returns a gesture recognizer, configured to invoke the showPopover: method.

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).

NSGroupTouchBarItem

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

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.