Contents

NSTokenField

A text field that converts text into visually distinct tokens.

Declaration

class NSTokenField

Overview

Use a token field when you want typed text to be transformed into “tokens”, which are visually distinct elements in the text field interface. For example, you might use a token field in a mail app to display email addresses for individual users. The distinct appearance of tokens makes them easy for users to distinguish from surrounding text.

NSTokenField uses an NSTokenFieldCell to implement much of the control’s functionality. NSTokenField provides cover methods for most methods of NSTokenFieldCell, which invoke the corresponding cell method.

Topics

Configuring the Token Style

Configuring the Tokenizing Character Set

Configuring the Completion Delay

Getting and Setting the Delegate

Enumerations