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

# readingOptions(forType:pasteboard:)

Returns options for reading data of a specified type from a given pasteboard.

```
optional static func readingOptions(forType type: NSPasteboard.PasteboardType, pasteboard: NSPasteboard) -> NSPasteboard.ReadingOptions
```

## Parameters

`type`

A UTI supported by instances of the receiver for reading (one of the types returned by [`readableTypes(for:)`](/documentation/AppKit/NSPasteboardReading/readableTypes(for:))).

`pasteboard`

A pasteboard.

    You can use the pasteboard argument to provide return different based on the pasteboard name, should you need to do so.

## Return Value

Options for reading data of `type` from `pasteboard`. For a list of valid values, see [`NSPasteboard.ReadingOptions`](/documentation/AppKit/NSPasteboard/ReadingOptions).

## Discussion

Do not perform other pasteboard operations in this 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)