---
title: imageFileTypes()
framework: appkit
role: symbol
role_heading: Type Method
path: appkit/nsimage/imagefiletypes()
---

# imageFileTypes()

Returns an array of strings identifying the image types supported by the registered image representation objects.

## Declaration

```swift
class func imageFileTypes() -> [String]
```

## Return Value

Return Value An array of NSString objects, each of which identifies a single supported file type. The array can include encoded HFS file types as well as filename extensions.

## Discussion

Discussion This list includes all file types supported by registered subclasses of NSImageRep plus those that can be converted to a supported type by a user-installed filter service. You can pass the array returned by this method directly to the runModalForTypes: method of NSOpenPanel. Do not override this method. If your app supports custom image types, create and register an NSImageRep subclass that handles those types.

## See Also

### Class Methods

- [imageUnfilteredFileTypes()](appkit/nsimage/imageunfilteredfiletypes().md)
- [imagePasteboardTypes()](appkit/nsimage/imagepasteboardtypes().md)
- [imageUnfilteredPasteboardTypes()](appkit/nsimage/imageunfilteredpasteboardtypes().md)
