Contents

fileExtensionsFromType:

Returns the allowable file extensions for the given document type.

Declaration

- (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.

See Also

Deprecated Methods