---
title: NSPickerTouchBarItem
framework: appkit
role: symbol
role_heading: Class
path: appkit/nspickertouchbaritem
---

# NSPickerTouchBarItem

A bar item that provides a picker control with multiple options.

## Declaration

```swift
class NSPickerTouchBarItem
```

## Topics

### Creating a picker item

- [init(identifier:images:selectionMode:target:action:)](appkit/nspickertouchbaritem/init(identifier:images:selectionmode:target:action:).md)
- [init(identifier:labels:selectionMode:target:action:)](appkit/nspickertouchbaritem/init(identifier:labels:selectionmode:target:action:).md)

### Configuring picker appearance

- [numberOfOptions](appkit/nspickertouchbaritem/numberofoptions.md)
- [setLabel(_:at:)](appkit/nspickertouchbaritem/setlabel(_:at:).md)
- [label(at:)](appkit/nspickertouchbaritem/label(at:).md)
- [setImage(_:at:)](appkit/nspickertouchbaritem/setimage(_:at:).md)
- [image(at:)](appkit/nspickertouchbaritem/image(at:).md)
- [collapsedRepresentationImage](appkit/nspickertouchbaritem/collapsedrepresentationimage.md)
- [collapsedRepresentationLabel](appkit/nspickertouchbaritem/collapsedrepresentationlabel.md)
- [controlRepresentation](appkit/nspickertouchbaritem/controlrepresentation-swift.property.md)
- [NSPickerTouchBarItem.ControlRepresentation](appkit/nspickertouchbaritem/controlrepresentation-swift.enum.md)

### Configuring picker state

- [isEnabled](appkit/nspickertouchbaritem/isenabled.md)
- [isEnabled(at:)](appkit/nspickertouchbaritem/isenabled(at:).md)
- [setEnabled(_:at:)](appkit/nspickertouchbaritem/setenabled(_:at:).md)

### Handling selection

- [selectedIndex](appkit/nspickertouchbaritem/selectedindex.md)
- [selectionColor](appkit/nspickertouchbaritem/selectioncolor.md)
- [selectionMode](appkit/nspickertouchbaritem/selectionmode-swift.property.md)
- [NSPickerTouchBarItem.SelectionMode](appkit/nspickertouchbaritem/selectionmode-swift.enum.md)

### Handling picker interaction

- [action](appkit/nspickertouchbaritem/action.md)
- [target](appkit/nspickertouchbaritem/target.md)

### Configuring bar customization

- [customizationLabel](appkit/nspickertouchbaritem/customizationlabel.md)

## Relationships

### Inherits From

- [NSTouchBarItem](appkit/nstouchbaritem.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Touch Bar items

- [NSTouchBarItem](appkit/nstouchbaritem.md)
- [NSCandidateListTouchBarItem](appkit/nscandidatelisttouchbaritem.md)
- [NSColorPickerTouchBarItem](appkit/nscolorpickertouchbaritem.md)
- [NSCustomTouchBarItem](appkit/nscustomtouchbaritem.md)
- [NSGroupTouchBarItem](appkit/nsgrouptouchbaritem.md)
- [NSPopoverTouchBarItem](appkit/nspopovertouchbaritem.md)
- [NSSharingServicePickerTouchBarItem](appkit/nssharingservicepickertouchbaritem.md)
- [NSSliderTouchBarItem](appkit/nsslidertouchbaritem.md)
- [NSStepperTouchBarItem](appkit/nssteppertouchbaritem.md)
- [NSUserInterfaceCompressionOptions](appkit/nsuserinterfacecompressionoptions.md)
- [NSButtonTouchBarItem](appkit/nsbuttontouchbaritem.md)
- [NSPickerTouchBarItem.ControlRepresentation](appkit/nspickertouchbaritem/controlrepresentation-swift.enum.md)
- [NSPickerTouchBarItem.SelectionMode](appkit/nspickertouchbaritem/selectionmode-swift.enum.md)
