---
title: "class(forPasteboardType:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nsimagerep/class(forpasteboardtype:)"
---

# class(forPasteboardType:)

Returns the image representation subclass that handles data with the specified pasteboard type.

## Declaration

```swift
class func `class`(forPasteboardType type: NSPasteboard.PasteboardType) -> AnyClass?
```

## Parameters

- `type`: The pasteboard type.

## Return Value

Return Value A Class object for the image representation that can handle the specified pasteboard type, or nil if no image representation could handle the type.

## See Also

### Managing Representation Subclasses of Images

- [class(forType:)](appkit/nsimagerep/class(fortype:).md)
- [class(for:)](appkit/nsimagerep/class(for:).md)
- [registeredClasses](appkit/nsimagerep/registeredclasses.md)
- [registerClass(_:)](appkit/nsimagerep/registerclass(_:).md)
- [unregisterClass(_:)](appkit/nsimagerep/unregisterclass(_:).md)
- [class(forFileType:)](appkit/nsimagerep/class(forfiletype:).md)
