Type Method

class(forPasteboardType:)

Returns the NSImageRep subclass that handles data with the specified pasteboard type.

Declaration

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

Parameters

type

The pasteboard type.

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 NSImageRep Subclasses

class func `class`(forType: String) -> AnyClass?

Returns the NSImageRep subclass that handles image data for the specified UTI.

class func `class`(for: Data) -> AnyClass?

Returns the NSImageRep subclass that handles the specified type of data.

class func `class`(forFileType: String) -> AnyClass?

Returns the NSImageRep subclass that handles data with the specified type.

Deprecated
class var registeredClasses: [AnyClass]

Returns an array containing the registered NSImageRep classes.

class func registerClass(AnyClass)

Adds the specified class to the registry of available NSImageRep subclasses.

class func unregisterClass(AnyClass)

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