<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.2 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPopoverTouchBarItem",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPopoverTouchBarItem"
  },
  "title" : "NSPopoverTouchBarItem"
}
-->

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

```
class NSPopoverTouchBarItem
```

## Topics

### Configuring the collapsed popover

[`collapsedRepresentation`](/documentation/AppKit/NSPopoverTouchBarItem/collapsedRepresentation)

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

[`collapsedRepresentationImage`](/documentation/AppKit/NSPopoverTouchBarItem/collapsedRepresentationImage)

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

[`collapsedRepresentationLabel`](/documentation/AppKit/NSPopoverTouchBarItem/collapsedRepresentationLabel)

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

### Configuring the expanded popover

[`popoverTouchBar`](/documentation/AppKit/NSPopoverTouchBarItem/popoverTouchBar)

The bar displayed when this item is “popped.”

[`showsCloseButton`](/documentation/AppKit/NSPopoverTouchBarItem/showsCloseButton)

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

[`pressAndHoldTouchBar`](/documentation/AppKit/NSPopoverTouchBarItem/pressAndHoldTouchBar)

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

### Expanding and collapsing a popover

[`showPopover(_:)`](/documentation/AppKit/NSPopoverTouchBarItem/showPopover(_:))

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

[`dismissPopover(_:)`](/documentation/AppKit/NSPopoverTouchBarItem/dismissPopover(_:))

Restores the previously visible main bar.

[`makeStandardActivatePopoverGestureRecognizer()`](/documentation/AppKit/NSPopoverTouchBarItem/makeStandardActivatePopoverGestureRecognizer())

Returns a gesture recognizer, configured to invoke the [`showPopover(_:)`](/documentation/AppKit/NSPopoverTouchBarItem/showPopover(_:)) method.

### Configuring bar customization

[`customizationLabel`](/documentation/AppKit/NSPopoverTouchBarItem/customizationLabel)

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)