---
title: client
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscandidatelisttouchbaritem/client
---

# client

The client object for the candidate list item.

## Declaration

```swift
weak var client: (any NSView & NSTextInputClient)? { get set }
```

## Discussion

Discussion This object must be a subclass of NSView and adopt the NSTextInputClient protocol. The candidate list item uses this property to show completion candidates as users enter text. You can disable this behavior with the allowsTextInputContextCandidates property.

## See Also

### Providing a client and a delegate

- [delegate](appkit/nscandidatelisttouchbaritem/delegate.md)
- [NSCandidateListTouchBarItemDelegate](appkit/nscandidatelisttouchbaritemdelegate.md)
