Type Method

imageUnfilteredFileTypes

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

Declaration

+ (NSArray<NSString *> *)imageUnfilteredFileTypes;

Return Value

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

Discussion

The returned file types can include encoded HFS file types as well as filename extensions. When creating a subclass of NSImageRep, override this method to return a list of strings representing the supported file types. For example, the NSBitmapImageRep class implements code similar to the following for this method:

+ (NSArray *)imageUnfilteredFileTypes {
    static NSArray *types = nil;
 
    if (!types) types = [[NSArray alloc]
        initWithObjects:@"tiff", @"gif", @"jpg",  @"bmp", nil];
    return types;
}

If your subclass supports the types supported by its superclass, you must explicitly get the array of types from the superclass and put them in 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
+ imageUnfilteredPasteboardTypes

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

Deprecated