Protocol

NSTokenFieldCellDelegate

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

Topics

Displaying Tokenized Strings

tokenFieldCell:displayStringForRepresentedObject:

Allows the delegate to provide a string to be displayed as a proxy for the represented object.

tokenFieldCell:styleForRepresentedObject:

Allows the delegate to return the token style for editing the specified represented object.

Editing a Tokenized Strings

tokenFieldCell:completionsForSubstring:indexOfToken:indexOfSelectedItem:

Allows the delegate to provide an array of appropriate completions for the contents of the receiver.

tokenFieldCell:editingStringForRepresentedObject:

Allows the delegate to provide a string to be edited as a proxy for the represented object.

tokenFieldCell:representedObjectForEditingString:

Allows the delegate to provide a represented object for the string being edited.

tokenFieldCell:shouldAddObjects:atIndex:

Allows the delegate to validate the tokens to be added to the receiver at a given index.

Reading To and Writing From the Pasteboard

tokenFieldCell:readFromPasteboard:

Allows the delegate to return an array of objects representing the data read from pboard.

tokenFieldCell:writeRepresentedObjects:toPasteboard:

Allows the delegate the opportunity to write custom pasteboard types to the pasteboard for the represented objects in objects.

Managing Menus for Represented Objects

tokenFieldCell:hasMenuForRepresentedObject:

Allows the delegate to specify whether the represented object provides a menu.

tokenFieldCell:menuForRepresentedObject:

Allows the delegate to provide a menu for the specified represented object.

Relationships

Inherits From

See Also

Cell

NSTokenFieldCell

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