NSTokenFieldCell is a subclass of NSTextFieldCell that provides tokenized editing of an array of objects similar to the address field in the Mail application. The objects may be strings or objects that can be represented as strings. A single token field cell can be presented in an NSTokenField control.


Managing the Token Style

var tokenStyle: NSTokenStyle

The token style of the receiver.

Managing the Tokenizing Character Set

class func defaultTokenizingCharacterSet()

Returns the default tokenizing character set.

var tokenizingCharacterSet: CharacterSet!

The receiver’s tokenizing character set to a given character set.

Configuring the Completion Delay

var completionDelay: TimeInterval

The receiver’s completion delay to a given delay.

class func defaultCompletionDelay()

Returns the default completion delay.

Managing the Delegate

var delegate: NSTokenFieldCellDelegate?

The receiver’s delegate.



The NSTokenStyle constants define how tokens are displayed and editable in the NSTokenFieldCell. These values are used by tokenStyle and the delegate method tokenFieldCell(_:styleForRepresentedObject:).


Inherits From