<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.5.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDocumentController/fileExtensionsFromType:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDocumentController(im)fileExtensionsFromType:"
  },
  "title" : "fileExtensionsFromType:"
}
-->

# fileExtensionsFromType:

Returns the allowable file extensions for the given document type.

```
- (NSArray *) fileExtensionsFromType:(NSString *) typeName;
```

## Parameters

`typeName`

The name of a document type, specified by `CFBundleTypeName` in the application’s `Info.plist` file.

## Return Value

The allowable file extensions (as `NSString` objects) for `documentTypeName`.

## Discussion

Type extensions are specified by the `CFBundleTypeExtensions` array for the given type in the `Info.plist` file.

The first string in the returned array is typically the most common extension. The array may also contain encoded HFS file types as will as filename extensions.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)