Contents

imagePasteboardTypes()

Returns the pasteboard types supported by the image representation class or one of its subclasses.

Declaration

class func imagePasteboardTypes() -> [NSPasteboard.PasteboardType]

Return Value

An array of NSString objects, each of which contains a supported pasteboard format.

Discussion

The list includes both those types returned by the imageUnfilteredPasteboardTypes() class method plus those that can be converted to a supported type by a user-installed filter service. Don’t override this method when subclassing NSImageRep—it always returns a valid list for any subclass of NSImageRep that correctly overrides the imageUnfilteredPasteboardTypes() method.

See Also

Determining Types for Images