---
title: imagePasteboardTypes()
framework: appkit
role: symbol
role_heading: Type Method
path: appkit/nsimagerep/imagepasteboardtypes()
---

# imagePasteboardTypes()

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

## Declaration

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

## Return Value

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

## Discussion

Discussion The list includes both those types returned by the 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() method.

## See Also

### Determining Types for Images

- [canInit(with:)](appkit/nsimagerep/caninit(with:)-6zv56.md)
- [canInit(with:)](appkit/nsimagerep/caninit(with:)-56pum.md)
- [imageTypes](appkit/nsimagerep/imagetypes.md)
- [imageUnfilteredTypes](appkit/nsimagerep/imageunfilteredtypes.md)
- [imageFileTypes()](appkit/nsimagerep/imagefiletypes().md)
- [imageUnfilteredFileTypes()](appkit/nsimagerep/imageunfilteredfiletypes().md)
- [imageUnfilteredPasteboardTypes()](appkit/nsimagerep/imageunfilteredpasteboardtypes().md)
