<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTokenFieldDelegate/tokenField(_:readFrom:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTokenFieldDelegate(im)tokenField:readFromPasteboard:"
  },
  "title" : "tokenField(_:readFrom:)"
}
-->

# tokenField(_:readFrom:)

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

```
@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

An array of represented objects created from the pasteboard data.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)