Protocol

NSTokenFieldCellDelegate

The NSTokenFieldCellDelegate protocol defines the optional methods implemented by delegates of NSTokenFieldCell objects.

Symbols

Displaying Tokenized Strings

func tokenFieldCell(NSTokenFieldCell, displayStringForRepresentedObject: Any)

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

func tokenFieldCell(NSTokenFieldCell, styleForRepresentedObject: Any)

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

Editing a Tokenized Strings

func tokenFieldCell(NSTokenFieldCell, completionsForSubstring: String, indexOfToken: Int, indexOfSelectedItem: UnsafeMutablePointer<Int>)

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

func tokenFieldCell(NSTokenFieldCell, editingStringForRepresentedObject: Any)

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

func tokenFieldCell(NSTokenFieldCell, representedObjectForEditing: String)

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

func tokenFieldCell(NSTokenFieldCell, shouldAdd: [Any], at: Int)

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

Reading To and Writing From the Pasteboard

func tokenFieldCell(NSTokenFieldCell, readFrom: NSPasteboard)

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

func tokenFieldCell(NSTokenFieldCell, writeRepresentedObjects: [Any], to: NSPasteboard)

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

Managing Menus for Represented Objects

func tokenFieldCell(NSTokenFieldCell, hasMenuForRepresentedObject: Any)

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

func tokenFieldCell(NSTokenFieldCell, menuForRepresentedObject: Any)

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

Relationships

Inherits From