Instance Method


Returns whether the specified filename extension is appropriate for the Uniform Type Identifier.


- (BOOL)filenameExtension:(NSString *)filenameExtension isValidForType:(NSString *)typeName;



A string containing the filename extension.


A string containing the Uniform Type Identifier.

Return Value

YES if fileNameExtension is a valid extension for typeName, NO otherwise


It is safe to call this method from any thread of your app.

See Also

Manipulating Uniform Type Identifier Information

- typeOfFile:error:

Returns the uniform type identifier of the specified file, if it can be determined..

- localizedDescriptionForType:

Returns the localized description for the specified Uniform Type Identifier

- preferredFilenameExtensionForType:

Returns the preferred filename extension for the specified Uniform Type Identifier.

- type:conformsToType:

Returns a Boolean indicating that the first Uniform Type Identifier conforms to the second Uniform Type Identifier.

- URLForApplicationWithBundleIdentifier:

Returns the URL for the app with the specified identifier.