typeFromFileExtension:
Returns the document type associated with files having extension fileExtensionOrHFSFileType.
Declaration
- (NSString *) typeFromFileExtension:(NSString *) fileNameExtensionOrHFSFileType;Discussion
The fileExtensionOrHFSFileType parameter may also be an encoded HFS file type, as well as a filename extension.
This method only works when passed a file name extension used in a CFBundleDocumentTypes entry that does not have an LSItemContentTypes subentry.
See Also
Deprecated Methods
documentForFileName:fileExtensionsFromType:fileNamesFromRunningOpenPanelmakeUntitledDocumentOfType:makeDocumentWithContentsOfURL:ofType:makeDocumentWithContentsOfFile:ofType:openDocumentWithContentsOfFile:display:openDocumentWithContentsOfURL:display:openDocumentWithContentsOfURL:display:error:openUntitledDocumentOfType:display:reopenDocumentForURL:withContentsOfURL:error:setShouldCreateUI:shouldCreateUI