<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.10.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSImageRep/imagePasteboardTypes()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSImageRep(cm)imagePasteboardTypes"
  },
  "title" : "imagePasteboardTypes()"
}
-->

# imagePasteboardTypes()

Returns the pasteboard types supported by the image representation class or one of its subclasses.

```
class func imagePasteboardTypes() -> [NSPasteboard.PasteboardType]
```

## Return Value

An array of `NSString` objects, each of which contains a supported pasteboard format.

## Discussion

The list includes both those types returned by the [`imageUnfilteredPasteboardTypes()`](/documentation/AppKit/NSImageRep/imageUnfilteredPasteboardTypes()) class method plus those that can be converted to a supported type by a user-installed filter service. Don’t override this method when subclassing `NSImageRep`—it always returns a valid list for any subclass of `NSImageRep` that correctly overrides the [`imageUnfilteredPasteboardTypes()`](/documentation/AppKit/NSImageRep/imageUnfilteredPasteboardTypes()) method.

---

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)