Contents

tokenField(_:editingStringForRepresentedObject:)

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

Declaration

@MainActor optional func tokenField(_ tokenField: NSTokenField, editingStringForRepresentedObject representedObject: Any) -> String?

Parameters

  • tokenField:

    The token field that sent the message.

  • representedObject:

    A represented object of the token field.

Return Value

A string that’s an editable proxy of the represented object, or nil if the token should not be editable.

See Also

Editing a Tokenized Strings