---
title: "tokenField(_:readFrom:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstokenfielddelegate/tokenfield(_:readfrom:)"
---

# tokenField(_:readFrom:)

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

## Declaration

```swift
@MainActor optional func tokenField(_ tokenField: NSTokenField, readFrom pboard: NSPasteboard) -> [Any]?
```

## Parameters

- `tokenField`: The token field that sent the message.
- `pboard`: The pasteboard from which to read the represented objects.

## Return Value

Return Value An array of represented objects created from the pasteboard data.

## See Also

### Reading To and Writing From the Pasteboard

- [tokenField(_:writeRepresentedObjects:to:)](appkit/nstokenfielddelegate/tokenfield(_:writerepresentedobjects:to:).md)
