<!--
{
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/token-field",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Token Field"
}
-->

# Token Field

Provide a text field whose text can be rendered in a visually distinct way so that users can recognize portions more easily.

## Topics

### View

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

A text field that converts text into visually distinct tokens.

### Management

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

A set of optional methods implemented by delegates of [`NSTokenField`](/documentation/AppKit/NSTokenField) objects.

### Cell

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

A text field cell subclass that enables tokenized editing of an array of objects.

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

A set of optional methods implemented by delegates of [`NSTokenFieldCell`](/documentation/AppKit/NSTokenFieldCell) objects to work with tokenized strings.



---

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)