Class

NSTokenField

A text field that converts text into visually distinct tokens.

Declaration

@interface NSTokenField : NSTextField

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

tokenStyle

The token style of the receiver.

Configuring the Tokenizing Character Set

tokenizingCharacterSet

The recevier’s tokenizing character set to characterSet.

defaultTokenizingCharacterSet

Returns the default tokenizing character set.

Configuring the Completion Delay

completionDelay

The receiver’s completion delay.

defaultCompletionDelay

Returns the default completion delay.

Getting and Setting the Delegate

delegate

Returns the token field’s delegate.

Relationships

Inherits From