Type Method

imageUnfilteredPasteboardTypes

Returns the list of pasteboard types supported directly by the receiver.

Declaration

+ (NSArray<NSPasteboardType> *)imageUnfilteredPasteboardTypes;

Return Value

An array of NSString objects. This array is empty by default. Subclasses must override to return the list of pasteboard formats they support.

Discussion

When creating a subclass of NSImageRep, override this method to return a list representing the supported pasteboard types. For example, the NSBitmapImageRep class implements code similar to the following for this method:

+ (NSArray *)imageUnfilteredPasteboardTypes {
    static NSArray *types = nil;
 
    if (!types) types = [[NSArray alloc] initWithObjects:NSTIFFPboardType,  nil];
    return types;
}

If your subclass supports the types supported by its superclass, you must explicitly get the list of types from the superclass and add them to the array returned by this method.

See Also

Determining the Supported Image Types

+ canInitWithData:

Returns a Boolean value indicating whether the receiver can initialize itself from the specified data.

+ canInitWithPasteboard:

Returns a Boolean value indicating whether the receiver can initialize itself from the data on the specified pasteboard.

imageTypes

Returns an array of UTI strings identifying the image types supported by the receiver, either directly or through a user-installed filter service.

imageUnfilteredTypes

Returns an array of UTI strings identifying the image types supported directly by the receiver.

+ imageFileTypes

Returns the file types supported by NSImageRep or one of its subclasses.

Deprecated
+ imagePasteboardTypes

Returns the pasteboard types supported by NSImageRep or one of its subclasses.

Deprecated
+ imageUnfilteredFileTypes

Returns the list of file types supported directly by the receiver.

Deprecated