<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPasteboard/canReadItem(withDataConformingToTypes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPasteboard(im)canReadItemWithDataConformingToTypes:"
  },
  "title" : "canReadItem(withDataConformingToTypes:)"
}
-->

# canReadItem(withDataConformingToTypes:)

Returns a Boolean value that indicates whether the receiver contains any items that conform to the specified UTIs.

```
func canReadItem(withDataConformingToTypes types: [String]) -> Bool
```

## Parameters

`types`

An array of `NSString` objects containing UTIs.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the receiver contains any items that conform to the UTIs specified in `types`, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## See Also

[`-  readObjectsForClasses:options:`](/documentation/AppKit/NSPasteboard/readObjects(forClasses:options:))

Reads from the receiver objects that best match the specified array of classes.



---

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)