Declared in NSString+DTUTI.h

Overview

Utility methods that work with Universal Type Identifiers (UTI).

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

fileTypeDescriptionForFileExtension:

Method to get the official description for a given file extension.

+ (NSString *)fileTypeDescriptionForFileExtension:(NSString *)extension

Parameters

extension

the file extension

Return Value

the description

Declared In

NSString+DTUTI.h

universalTypeIdentifierForFileExtension:

Method to get the preferred UTI for a given file extension.

+ (NSString *)universalTypeIdentifierForFileExtension:(NSString *)extension

Parameters

extension

the file extension

Return Value

the UTI

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

isImageFileName

@Returns YES if the receiver is an image file name

- (BOOL)isImageFileName

Declared In

NSString+DTUTI.h

isMovieFileName

YES if the receiver is a movie file name

- (BOOL)isMovieFileName

Return Value

YES if the receiver is a movie file name

Declared In

NSString+DTUTI.h