tokenFieldCell(_:writeRepresentedObjects:to:)
Allows the delegate the opportunity to write custom pasteboard types to the pasteboard for the represented objects in objects.
Declaration
@MainActor optional func tokenFieldCell(_ tokenFieldCell: NSTokenFieldCell, writeRepresentedObjects objects: [Any], to pboard: NSPasteboard) -> BoolParameters
- tokenFieldCell:
The token field cell that sent the message.
- objects:
An array of represented objects associated with the token field cell.
- pboard:
The pasteboard to which to write the represented objects.
Return Value
true if the delegate writes the represented objects to the pasteboard, false otherwise. If false, the token field writes the display strings to the NSStringPboardType pasteboard.