<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.15.0"
  ],
  "documentType" : "symbol",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/QCPlugIn/registerClass(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Quartz"
    ],
    "preciseIdentifier" : "c:objc(cs)QCPlugIn(cm)registerPlugInClass:"
  },
  "title" : "registerClass(_:)"
}
-->

# registerClass(_:)

Registers a `QCPlugIn` subclass.

```
class func registerClass(_ aClass: AnyClass!)
```

## Parameters

`aClass`

The `QCPlugIn` subclass.

## Discussion

You call this method only if the code for your custom patch is mixed with your application code, and you plan only to use the custom patch from within  your application.

---

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)