NSString(DTUTI) Category Reference
Declared in | NSString+DTUTI.h |
Class Methods
MIMETypeForFileExtension:
Method to get the recommended MIME-Type for the given file extension. If no MIME-Type can be determined then ‘application/octet-stream’ is returned.
+ (NSString *)MIMETypeForFileExtension:(NSString *)extension
Parameters
- extension
the file extension
Return Value
the recommended MIME-Type for the given path extension.
Declared In
NSString+DTUTI.h
fileExtensionForUniversalTypeIdentifier:
Get the prefered file extension for a given UTI.
+ (NSString *)fileExtensionForUniversalTypeIdentifier:(NSString *)UTI
Parameters
- UTI
he UTI
Return Value
The File Extension
Declared In
NSString+DTUTI.h
Instance Methods
conformsToUniversalTypeIdentifier:
Tests if the receiver conforms to a given UTI.
- (BOOL)conformsToUniversalTypeIdentifier:(NSString *)conformingUTI
Parameters
- conformingUTI
the UTI that is tested against
Return Value
YES
if the receiver conforms
Declared In
NSString+DTUTI.h
isAudioFileName
@Returns YES
if the receiver is an audio file name
- (BOOL)isAudioFileName
Declared In
NSString+DTUTI.h
isHTMLFileName
@Returns YES
if the receiver is an HTML file name
- (BOOL)isHTMLFileName
Declared In
NSString+DTUTI.h