<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCandidateListTouchBarItemDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSCandidateListTouchBarItemDelegate"
  },
  "title" : "NSCandidateListTouchBarItemDelegate"
}
-->

# NSCandidateListTouchBarItemDelegate

A set of methods that a candidate list item delegate uses to enable selection state and list visibility.

```
protocol NSCandidateListTouchBarItemDelegate : NSObjectProtocol
```

## Topics

### Handling selection changes

[`-  candidateListTouchBarItem:beginSelectingCandidateAtIndex:`](/documentation/AppKit/NSCandidateListTouchBarItemDelegate/candidateListTouchBarItem(_:beginSelectingCandidateAt:))

Tells the delegate that the user has started touching one of the candidates in the candidate list item.

[`-  candidateListTouchBarItem:changeSelectionFromCandidateAtIndex:toIndex:`](/documentation/AppKit/NSCandidateListTouchBarItemDelegate/candidateListTouchBarItem(_:changeSelectionFromCandidateAt:to:))

Tells the delegate that user has moved from touching one candidate in the candidate list item to another.

[`-  candidateListTouchBarItem:endSelectingCandidateAtIndex:`](/documentation/AppKit/NSCandidateListTouchBarItemDelegate/candidateListTouchBarItem(_:endSelectingCandidateAt:))

Tells the delegate that a user has stopped touching candidates in the candidate list item.

### Handling visibility changes

[`-  candidateListTouchBarItem:changedCandidateListVisibility:`](/documentation/AppKit/NSCandidateListTouchBarItemDelegate/candidateListTouchBarItem(_:changedCandidateListVisibility:))

Tells the delegate that the visibility of the candidate list has changed.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Conforming Types

[`NSTextView`](/documentation/AppKit/NSTextView)

---

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)