---
title: NSTokenFieldCellDelegate
framework: appkit
role: symbol
role_heading: Protocol
path: appkit/nstokenfieldcelldelegate
---

# NSTokenFieldCellDelegate

A set of optional methods implemented by delegates of NSTokenFieldCell objects to work with tokenized strings.

## Declaration

```swift
protocol NSTokenFieldCellDelegate : NSObjectProtocol
```

## Topics

### Displaying Tokenized Strings

- [tokenFieldCell(_:displayStringForRepresentedObject:)](appkit/nstokenfieldcelldelegate/tokenfieldcell(_:displaystringforrepresentedobject:).md)
- [tokenFieldCell(_:styleForRepresentedObject:)](appkit/nstokenfieldcelldelegate/tokenfieldcell(_:styleforrepresentedobject:).md)

### Editing a Tokenized Strings

- [tokenFieldCell(_:completionsForSubstring:indexOfToken:indexOfSelectedItem:)](appkit/nstokenfieldcelldelegate/tokenfieldcell(_:completionsforsubstring:indexoftoken:indexofselecteditem:).md)
- [tokenFieldCell(_:editingStringForRepresentedObject:)](appkit/nstokenfieldcelldelegate/tokenfieldcell(_:editingstringforrepresentedobject:).md)
- [tokenFieldCell(_:representedObjectForEditing:)](appkit/nstokenfieldcelldelegate/tokenfieldcell(_:representedobjectforediting:).md)
- [tokenFieldCell(_:shouldAdd:at:)](appkit/nstokenfieldcelldelegate/tokenfieldcell(_:shouldadd:at:).md)

### Reading To and Writing From the Pasteboard

- [tokenFieldCell(_:readFrom:)](appkit/nstokenfieldcelldelegate/tokenfieldcell(_:readfrom:).md)
- [tokenFieldCell(_:writeRepresentedObjects:to:)](appkit/nstokenfieldcelldelegate/tokenfieldcell(_:writerepresentedobjects:to:).md)

### Managing Menus for Represented Objects

- [tokenFieldCell(_:hasMenuForRepresentedObject:)](appkit/nstokenfieldcelldelegate/tokenfieldcell(_:hasmenuforrepresentedobject:).md)
- [tokenFieldCell(_:menuForRepresentedObject:)](appkit/nstokenfieldcelldelegate/tokenfieldcell(_:menuforrepresentedobject:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Cell

- [NSTokenFieldCell](appkit/nstokenfieldcell.md)
