registerClass(_:)
Adds the specified class to the registry of available image representation subclasses.
Declaration
class func registerClass(_ imageRepClass: AnyClass)Parameters
- imageRepClass:
The
Classobject for anNSImageRepsubclass.
Discussion
This method posts an registryDidChangeNotification, along with the receiving object, to the default notification center.
A good place to add image representation classes to the registry is in the load class method.