---
title: "unregisterClass(_:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nsimagerep/unregisterclass(_:)"
---

# unregisterClass(_:)

Removes the specified image representation subclass from the registry of available image representations.

## Declaration

```swift
class func unregisterClass(_ imageRepClass: AnyClass)
```

## Parameters

- `imageRepClass`: The Class object for an NSImageRep subclass.

## Discussion

Discussion This method posts the registryDidChangeNotification, along with the receiving object, to the default notification center.

## 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)
- [class(forFileType:)](appkit/nsimagerep/class(forfiletype:).md)
- [class(forPasteboardType:)](appkit/nsimagerep/class(forpasteboardtype:).md)
