<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPasteboardReading/readableTypes(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSPasteboardReading(cm)readableTypesForPasteboard:"
  },
  "title" : "readableTypes(for:)"
}
-->

# readableTypes(for:)

Returns an array of uniform type identifier strings of data types the receiver can read from the pasteboard and initialize from.

```
static func readableTypes(for pasteboard: NSPasteboard) -> [NSPasteboard.PasteboardType]
```

## Parameters

`pasteboard`

A pasteboard. You can use the pasteboard argument to provide different types based on the pasteboard name, if you need to.

## Return Value

An array of uniform type identifier strings of data types instances that the receiver can read from the pasteboard and initialize from.

## Discussion

By default, the system provides the data for a type to [`init(pasteboardPropertyList:ofType:)`](/documentation/AppKit/NSPasteboardReading/init(pasteboardPropertyList:ofType:)) as an instance of `NSData`. If you implement [`readingOptions(forType:pasteboard:)`](/documentation/AppKit/NSPasteboardReading/readingOptions(forType:pasteboard:)) and specify a different option, the system converts the `NSData` object for a type to an `NSString` object or any other property list object.

### Special Considerations

Don’t perform other pasteboard operations in the method implementation.

---

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)