---
title: "readableTypes(for:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nspasteboardreading/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.

## Declaration

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

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

Discussion By default, the system provides the data for a type to init(pasteboardPropertyList:ofType:) as an instance of NSData. If you implement 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.

## See Also

### Reading From the Pasteboard

- [readingOptions(forType:pasteboard:)](appkit/nspasteboardreading/readingoptions(fortype:pasteboard:).md)
- [NSPasteboard.ReadingOptions](appkit/nspasteboard/readingoptions.md)
