UTI Reference

File
UTI/Source/UTI.h
Copyright
© (c) 2014 - Jean-David Gadina - www.xs-labs.com
Date
Tuesday, June 16, 2015
Includes
None

Overview

Objective-C wrapper class for Uniform Type Identifiers (UTIs)

Class UTI

Attributes

Conforms to
NSCopying
Superclass
NSObject

Tasks

Properties

+ abstractTypes

Gets the known uniform type identifiers that most other type identifiers are derived from.

+ ( NSArray * )abstractTypes;

Return value

An array with the corresponding UTIs.

+ aliasFileTypeUTI

Gets an UTI object for the 'com.apple.alias-file' UTI.

+ ( instancetype )aliasFileTypeUTI;

Discussion

The type identifier for a fully-formed alias file.

Return value

An UTI object.

+ aliasRecordTypeUTI

Gets an UTI object for the 'com.apple.alias-record' UTI.

+ ( instancetype )aliasRecordTypeUTI;

Discussion

The type identifier for raw alias data.

Return value

An UTI object.

+ allUTIsWithFileExtension:

Gets an array of all uniform type identifiers for the specified file extension.

+ ( NSArray * )allUTIsWithFileExtension: ( NSString * )extension;

Parameters
  • extension
    The file extension.
Return value

An array of uniform type identifiers.

+ allUTIsWithFileExtension:

Gets an array of all uniform type identifiers for the specified file extension.

+ ( NSArray * )allUTIsWithFileExtension: ( NSString * )extension allowDynamic: ( BOOL )dyn;

Parameters
  • extension
    The file extension.
  • dyn
    Allows dynamic UTIs.
Return value

An array of uniform type identifiers.

+ allUTIsWithFileExtension:allowDynamic:

Gets an array of all uniform type identifiers for the specified file extension.

+ ( NSArray * )allUTIsWithFileExtension: ( NSString * )extension allowDynamic: ( BOOL )dyn;

Parameters
  • extension
    The file extension.
  • dyn
    Allows dynamic UTIs.

+ allUTIsWithFileExtension:conformingTo:

Gets an array of all uniform type identifiers for the specified file extension.

+ ( NSArray * )allUTIsWithFileExtension: ( NSString * )extension conformingTo: ( UTI * )uti;

Parameters
  • extension
    The file extension.
  • uti
    If not nil, all returned uniform type identifiers must conform to this parameter.
Return value

An array of uniform type identifiers.

+ allUTIsWithFileExtension:conformingTo:

Gets an array of all uniform type identifiers for the specified file extension.

+ ( NSArray * )allUTIsWithFileExtension: ( NSString * )extension conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • extension
    The file extension.
  • uti
    If not nil, all returned uniform type identifiers must conform to this parameter.
  • dyn
    Allows dynamic UTIs.
Return value

An array of uniform type identifiers.

+ allUTIsWithFileExtension:conformingTo:allowDynamic:

Gets an array of all uniform type identifiers for the specified file extension.

+ ( NSArray * )allUTIsWithFileExtension: ( NSString * )extension conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • extension
    The file extension.
  • uti
    If not nil, all returned uniform type identifiers must conform to this parameter.
  • dyn
    Allows dynamic UTIs.

+ allUTIsWithMIMEType:

Gets an array of all uniform type identifiers for the specified mime-type.

+ ( NSArray * )allUTIsWithMIMEType: ( NSString * )type;

Parameters
  • type
    The mime-type.
Return value

An array of uniform type identifiers.

+ allUTIsWithMIMEType:

Gets an array of all uniform type identifiers for the specified mime-type.

+ ( NSArray * )allUTIsWithMIMEType: ( NSString * )type allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The mime-type.
  • dyn
    Allows dynamic UTIs.
Return value

An array of uniform type identifiers.

+ allUTIsWithMIMEType:allowDynamic:

Gets an array of all uniform type identifiers for the specified mime-type.

+ ( NSArray * )allUTIsWithMIMEType: ( NSString * )type allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The mime-type.
  • dyn
    Allows dynamic UTIs.

+ allUTIsWithMIMEType:conformingTo:

Gets an array of all uniform type identifiers for the specified mime-type.

+ ( NSArray * )allUTIsWithMIMEType: ( NSString * )type conformingTo: ( UTI * )uti;

Parameters
  • type
    The mime-type.
  • uti
    If not nil, all returned uniform type identifiers must conform to this parameter.
Return value

An array of uniform type identifiers.

+ allUTIsWithMIMEType:conformingTo:

Gets an array of all uniform type identifiers for the specified mime-type.

+ ( NSArray * )allUTIsWithMIMEType: ( NSString * )type conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The mime-type.
  • uti
    If not nil, all returned uniform type identifiers must conform to this parameter.
  • dyn
    Allows dynamic UTIs.
Return value

An array of uniform type identifiers.

+ allUTIsWithMIMEType:conformingTo:allowDynamic:

Gets an array of all uniform type identifiers for the specified mime-type.

+ ( NSArray * )allUTIsWithMIMEType: ( NSString * )type conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The mime-type.
  • uti
    If not nil, all returned uniform type identifiers must conform to this parameter.
  • dyn
    Allows dynamic UTIs.

+ allUTIsWithNSPboardType:

Gets an array of all uniform type identifiers for the specified NSPasteboardType.

+ ( NSArray * )allUTIsWithNSPboardType: ( NSString * )type;

Parameters
  • type
    The NSPasteboardType.
Return value

An array of uniform type identifiers.

+ allUTIsWithNSPboardType:

Gets an array of all uniform type identifiers for the specified NSPasteboardType.

+ ( NSArray * )allUTIsWithNSPboardType: ( NSString * )type allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The NSPasteboardType.
  • dyn
    Allows dynamic UTIs.
Return value

An array of uniform type identifiers.

+ allUTIsWithNSPboardType:allowDynamic:

Gets an array of all uniform type identifiers for the specified NSPasteboardType.

+ ( NSArray * )allUTIsWithNSPboardType: ( NSString * )type allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The NSPasteboardType.
  • dyn
    Allows dynamic UTIs.

+ allUTIsWithNSPboardType:conformingTo:

Gets an array of all uniform type identifiers for the specified NSPasteboardType.

+ ( NSArray * )allUTIsWithNSPboardType: ( NSString * )type conformingTo: ( UTI * )uti;

Parameters
  • type
    The NSPasteboardType.
  • uti
    If not nil, all returned uniform type identifiers must conform to this parameter.
Return value

An array of uniform type identifiers.

+ allUTIsWithNSPboardType:conformingTo:

Gets an array of all uniform type identifiers for the specified NSPasteboardType.

+ ( NSArray * )allUTIsWithNSPboardType: ( NSString * )type conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The NSPasteboardType.
  • uti
    If not nil, all returned uniform type identifiers must conform to this parameter.
  • dyn
    Allows dynamic UTIs.
Return value

An array of uniform type identifiers.

+ allUTIsWithNSPboardType:conformingTo:allowDynamic:

Gets an array of all uniform type identifiers for the specified NSPasteboardType.

+ ( NSArray * )allUTIsWithNSPboardType: ( NSString * )type conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The NSPasteboardType.
  • uti
    If not nil, all returned uniform type identifiers must conform to this parameter.
  • dyn
    Allows dynamic UTIs.

+ allUTIsWithOSType:

Gets an array of all uniform type identifiers for the specified OSType.

+ ( NSArray * )allUTIsWithOSType: ( NSString * )type;

Parameters
  • type
    The OSType.
Return value

An array of uniform type identifiers.

See also

+ allUTIsWithOSType:

Gets an array of all uniform type identifiers for the specified OSType.

+ ( NSArray * )allUTIsWithOSType: ( NSString * )type allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The OSType.
  • dyn
    Allows dynamic UTIs.
Return value

An array of uniform type identifiers.

See also

+ allUTIsWithOSType:allowDynamic:

Gets an array of all uniform type identifiers for the specified OSType.

+ ( NSArray * )allUTIsWithOSType: ( NSString * )type allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The OSType.
  • dyn
    Allows dynamic UTIs.

+ allUTIsWithOSType:conformingTo:

Gets an array of all uniform type identifiers for the specified OSType.

+ ( NSArray * )allUTIsWithOSType: ( NSString * )type conformingTo: ( UTI * )uti;

Parameters
  • type
    The OSType.
  • uti
    If not nil, all returned uniform type identifiers must conform to this parameter.
Return value

An array of uniform type identifiers.

See also

+ allUTIsWithOSType:conformingTo:

Gets an array of all uniform type identifiers for the specified OSType.

+ ( NSArray * )allUTIsWithOSType: ( NSString * )type conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The OSType.
  • uti
    If not nil, all returned uniform type identifiers must conform to this parameter.
  • dyn
    Allows dynamic UTIs.
Return value

An array of uniform type identifiers.

See also

+ allUTIsWithOSType:conformingTo:allowDynamic:

Gets an array of all uniform type identifiers for the specified OSType.

+ ( NSArray * )allUTIsWithOSType: ( NSString * )type conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The OSType.
  • uti
    If not nil, all returned uniform type identifiers must conform to this parameter.
  • dyn
    Allows dynamic UTIs.

+ allUTIsWithTag:tagClass:conformingTo:

Gets an array of all uniform type identifiers for the type indicated by the specified tag.

+ ( NSArray * )allUTIsWithTag: ( NSString * )tag tagClass: ( UTITagClass )tagClass conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Discussion

This method is used to translate a type declared using another declaration mechanism (for example, MIME types) into a uniform type identifier. This method searches all UTI declarations for a matching translation and returns all possible results. If a conforming parameter is assigned, the search is reduced to the subset of type identifiers that conform to that type.

Parameters
  • tag
    The tag to translate into a uniform type identifier.
  • tagClass
    The class of the tag parameter.
  • uti
    If not nil, all returned uniform type identifiers must conform to this parameter.
  • dyn
    Allows dynamic UTIs.
Return value

An array of uniform type identifiers.

+ allUTIsWithTag:tagClass:conformingTo:allowDynamic:

Gets an array of all uniform type identifiers for the type indicated by the specified tag.

+ ( NSArray * )allUTIsWithTag: ( NSString * )tag tagClass: ( UTITagClass )tagClass conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Discussion

This method is used to translate a type declared using another declaration mechanism (for example, MIME types) into a uniform type identifier. This method searches all UTI declarations for a matching translation and returns all possible results. If a conforming parameter is assigned, the search is reduced to the subset of type identifiers that conform to that type.

Parameters
  • tag
    The tag to translate into a uniform type identifier.
  • tagClass
    The class of the tag parameter.
  • uti
    If not nil, all returned uniform type identifiers must conform to this parameter.
  • dyn
    Allows dynamic UTIs.

+ appleICNSTypeUTI

Gets an UTI object for the 'com.apple.icns' UTI.

+ ( instancetype )appleICNSTypeUTI;

Discussion

The type identifier for Apple icon data.

Return value

An UTI object.

+ appleProtectedMPEG4AudioTypeUTI

Gets an UTI object for the 'com.apple.protected-mpeg-4-audio' UTI.

+ ( instancetype )appleProtectedMPEG4AudioTypeUTI;

Discussion

The type identifier for Apple protected MPEG4 format (.m4p, iTunes music store format).

Return value

An UTI object.

+ applicationBundleTypeUTI

Gets an UTI object for the 'com.apple.application-bundle' UTI.

+ ( instancetype )applicationBundleTypeUTI;

Discussion

The type identifier for a bundled application.

Return value

An UTI object.

+ applicationFileTypeUTI

Gets an UTI object for the 'com.apple.application-file' UTI.

+ ( instancetype )applicationFileTypeUTI;

Discussion

The type identifier for a single-file Carbon/Classic application.

Return value

An UTI object.

+ applicationTypes

Gets the known uniform type identifiers for application types.

+ ( NSArray * )applicationTypes;

Return value

An array with the corresponding UTIs.

+ applicationTypeUTI

Gets an UTI object for the 'com.apple.application' UTI.

+ ( instancetype )applicationTypeUTI;

Discussion

The type identifier for Mac apps.

Return value

An UTI object.

+ archiveTypeUTI

Gets an UTI object for the 'public.archive' UTI.

+ ( instancetype )archiveTypeUTI;

Discussion

The abstract type identifier for an archive of files and directories.

Return value

An UTI object.

+ audioTypeUTI

Gets an UTI object for the 'public.audio' UTI.

+ ( instancetype )audioTypeUTI;

Discussion

An abstract type identifier for pure audio data (no video).

Return value

An UTI object.

+ audioVisualContentTypes

Gets the known uniform type identifier for audio and video content.

+ ( NSArray * )audioVisualContentTypes;

Return value

An array with the corresponding UTIs.

+ audiovisualContentTypeUTI

Gets an UTI object for the 'public.audiovisual-content' UTI.

+ ( instancetype )audiovisualContentTypeUTI;

Discussion

An abstract type identifier for audio and/or video content.

Return value

An UTI object.

+ BMPTypeUTI

Gets an UTI object for the 'com.microsoft.bmp' UTI.

+ ( instancetype )BMPTypeUTI;

Discussion

The type identifier for a Windows bitmap.

Return value

An UTI object.

+ bundleTypeUTI

Gets an UTI object for the 'com.apple.bundle' UTI.

+ ( instancetype )bundleTypeUTI;

Discussion

The type identifier for a directory conforming to a CFBundle layout

Return value

An UTI object.

+ CHeaderTypeUTI

Gets an UTI object for the 'public.c-header' UTI.

+ ( instancetype )CHeaderTypeUTI;

Discussion

The type identifier for a C header.

Return value

An UTI object.

+ compositeContentTypes

Gets the known uniform type identifiers for content that includes multiple data types.

+ ( NSArray * )compositeContentTypes;

Return value

An array with the corresponding UTIs.

+ compositeContentTypeUTI

Gets an UTI object for the 'public.composite-content' UTI.

+ ( instancetype )compositeContentTypeUTI;

Discussion

The abstract type identifier for content formats supporting mixed embedded content (i.e., compound documents).

Return value

An UTI object.

+ concreteTypes

Gets the known uniform type identifiers for concrete types.

+ ( NSArray * )concreteTypes;

Return value

An array with the corresponding UTIs.

- conformsToUTI:

Returns a Boolean value that indicates whether a given object is an UTI object and conforms to the receiver.

- ( BOOL )conformsToUTI: ( UTI * )uti;

Parameters
  • uti
    The UTI object to compare for conformance with the receiver.
Return value

YES if the uti is an UTI object and is conforms to the receiver, otherwise NO.

+ contactTypes

Gets the known uniform type identifiers for contact types.

+ ( NSArray * )contactTypes;

Return value

An array with the corresponding UTIs.

+ contactTypeUTI

Gets an UTI object for the 'public.contact' UTI.

+ ( instancetype )contactTypeUTI;

Discussion

The abstract type identifier for contact information( for example, a person, group, or organization).

Return value

An UTI object.

+ contentTypeUTI

Gets an UTI object for the 'public.content' UTI.

+ ( instancetype )contentTypeUTI;

Discussion

The abstract type identifier for anything containing user-viewable document content (documents, pasteboard data, and document packages).

Return value

An UTI object.

+ CPlusPlusHeaderTypeUTI

Gets an UTI object for the 'public.c-plus-plus-header' UTI.

+ ( instancetype )CPlusPlusHeaderTypeUTI;

Discussion

The type identifier for a C++ header.

Return value

An UTI object.

+ CPlusPlusSourceTypeUTI

Gets an UTI object for the 'public.c-plus-plus-source' UTI.

+ ( instancetype )CPlusPlusSourceTypeUTI;

Discussion

The type identifier for C++ source code (.cp, etc.).

Return value

An UTI object.

+ CSourceTypeUTI

Gets an UTI object for the 'public.c-source' UTI.

+ ( instancetype )CSourceTypeUTI;

Discussion

The type identifier for C source code (.c).

Return value

An UTI object.

+ dataTypeUTI

Gets an UTI object for the 'public.data' UTI.

+ ( instancetype )dataTypeUTI;

Discussion

The type identifier for any sort of simple byte stream, including files and in-memory data.

Return value

An UTI object.

+ directoryTypes

Gets the known uniform type identifiers for different directory types.

+ ( NSArray * )directoryTypes;

Return value

An array with the corresponding UTIs.

+ directoryTypeUTI

Gets an UTI object for the 'public.directory' UTI.

+ ( instancetype )directoryTypeUTI;

Discussion

The type identifier for a file system directory, including packages and folders.

Return value

An UTI object.

+ diskImageTypeUTI

Gets an UTI object for the 'public.disk-image' UTI.

+ ( instancetype )diskImageTypeUTI;

Discussion

The type identifier for a data item mountable as a volume.

Return value

An UTI object.

+ fileURLTypeUTI

Gets an UTI object for the 'public.file-url' UTI.

+ ( instancetype )fileURLTypeUTI;

Discussion

The type identifier for the text of a "file:" URL.

Return value

An UTI object.

+ flatRTFDTypeUTI

Gets an UTI object for the 'com.apple.flat-rtfd' UTI.

+ ( instancetype )flatRTFDTypeUTI;

Discussion

The type identifier for Flattened RTFD (pasteboard format).

Return value

An UTI object.

+ folderTypeUTI

Gets an UTI object for the 'public.folder' UTI.

+ ( instancetype )folderTypeUTI;

Discussion

The type identifier for a a user-browsable directory (i.e., not a package).

Return value

An UTI object.

+ frameworkTypeUTI

Gets an UTI object for the 'com.apple.framework' UTI.

+ ( instancetype )frameworkTypeUTI;

Discussion

The type identifier for directory conforming to an OS X framework.

Return value

An UTI object.

+ GIFTypeUTI

Gets an UTI object for the 'com.compuserve.gif' UTI.

+ ( instancetype )GIFTypeUTI;

Discussion

The type identifier for a GIF image.

Return value

An UTI object.

+ HTMLTypeUTI

Gets an UTI object for the 'public.html' UTI.

+ ( instancetype )HTMLTypeUTI;

Discussion

The type identifier for HTML, any version.

Return value

An UTI object.

+ ICOTypeUTI

Gets an UTI object for the 'com.microsoft.ico' UTI.

+ ( instancetype )ICOTypeUTI;

Discussion

The type identifier for Windows icon data.

Return value

An UTI object.

+ imageContentTypes

Gets the known uniform type identifiers for graphics content.

+ ( NSArray * )imageContentTypes;

Return value

An array with the corresponding UTIs.

+ imageTypeUTI

Gets an UTI object for the 'public.image' UTI.

+ ( instancetype )imageTypeUTI;

Discussion

The abstract type identifier for image data.

Return value

An UTI object.

+ initWithCFString:

Gets an UTI object with a CoreFoundation string.

+ ( instancetype )UTIWithCFString: ( CFStringRef )str;

Parameters
  • str
    The UTI identifier, as a CoreFoundation string.
Return value

An UTI object.

+ initWithCFString:

Gets an UTI object with a CoreFoundation string.

+ ( instancetype )UTIWithCFString: ( CFStringRef )str allowDynamic: ( BOOL )dyn;

Parameters
  • str
    The UTI identifier, as a CoreFoundation string.
  • dyn
    Allows dynamic UTIs.
Return value

An UTI object.

- initWithCFString:

Initializes an UTI object with a CoreFoundation string.

- ( instancetype )initWithCFString: ( CFStringRef )str NS_DESIGNATED_INITIALIZER;

Parameters
  • str
    The UTI identifier, as a CoreFoundation string.
Return value

An UTI object.

+ initWithFileExtension:

Gets an UTI object with a file extension.

+ ( instancetype )UTIWithFileExtension: ( NSString * )extension;

Parameters
  • extension
    The file extension.
Return value

An UTI object.

+ initWithFileExtension:

Gets an UTI object with a file extension.

+ ( instancetype )UTIWithFileExtension: ( NSString * )extension allowDynamic: ( BOOL )dyn;

Parameters
  • extension
    The file extension.
  • dyn
    Allows dynamic UTIs.
Return value

An UTI object.

- initWithFileExtension:

Initializes an UTI object with a file extension.

- ( instancetype )initWithFileExtension: ( NSString * )extension;

Parameters
  • extension
    The file extension.
Return value

An UTI object.

+ initWithFileExtension:conformingTo:

Gets an UTI object with a file extension.

+ ( instancetype )UTIWithFileExtension: ( NSString * )extension conformingTo: ( UTI * )uti;

Parameters
  • extension
    The file extension.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
Return value

An UTI object.

+ initWithFileExtension:conformingTo:

Gets an UTI object with a file extension.

+ ( instancetype )UTIWithFileExtension: ( NSString * )extension conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • extension
    The file extension.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
  • dyn
    Allows dynamic UTIs.
Return value

An UTI object.

- initWithFileExtension:conformingTo:

Initializes an UTI object with a file extension.

- ( instancetype )initWithFileExtension: ( NSString * )extension conformingTo: ( UTI * )uti;

Parameters
  • extension
    The file extension.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
Return value

An UTI object.

+ initWithMIMEType:

Gets an UTI object with a mime-type.

+ ( instancetype )UTIWithMIMEType: ( NSString * )type;

Parameters
  • type
    The mime-type.
Return value

An UTI object.

+ initWithMIMEType:

Gets an UTI object with a mime-type.

+ ( instancetype )UTIWithMIMEType: ( NSString * )type allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The mime-type.
  • dyn
    Allows dynamic UTIs.
Return value

An UTI object.

- initWithMIMEType:

Initializes an UTI object with a mime-type.

- ( instancetype )initWithMIMEType: ( NSString * )type;

Parameters
  • type
    The mime-type.
Return value

An UTI object.

+ initWithMIMEType:conformingTo:

Gets an UTI object with a mime-type.

+ ( instancetype )UTIWithMIMEType: ( NSString * )type conformingTo: ( UTI * )uti;

Parameters
  • type
    The mime-type.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
Return value

An UTI object.

+ initWithMIMEType:conformingTo:

Gets an UTI object with a mime-type.

+ ( instancetype )UTIWithMIMEType: ( NSString * )type conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The mime-type.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
  • dyn
    Allows dynamic UTIs.
Return value

An UTI object.

- initWithMIMEType:conformingTo:

Initializes an UTI object with a mime-type.

- ( instancetype )initWithMIMEType: ( NSString * )type conformingTo: ( UTI * )uti;

Parameters
  • type
    The mime-type.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
Return value

An UTI object.

+ initWithNSPboardType

Gets an UTI object with a NSPasteboardType.

+ ( instancetype )UTIWithNSPboardType: ( NSString * )type;

Parameters
  • type
    The NSPasteboardType.
Return value

An UTI object.

+ initWithNSPboardType

Gets an UTI object with a NSPasteboardType.

+ ( instancetype )UTIWithNSPboardType: ( NSString * )type allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The NSPasteboardType.
  • dyn
    Allows dynamic UTIs.
Return value

An UTI object.

- initWithNSPboardType:

Initializes an UTI object with a NSPasteboardType.

- ( instancetype )initWithNSPboardType: ( NSString * )type;

Parameters
  • type
    The NSPasteboardType.
Return value

An UTI object.

+ initWithNSPboardType:conformingTo:

Gets an UTI object with a NSPasteboardType.

+ ( instancetype )UTIWithNSPboardType: ( NSString * )type conformingTo: ( UTI * )uti;

Parameters
  • type
    The NSPasteboardType.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
Return value

An UTI object.

+ initWithNSPboardType:conformingTo:

Gets an UTI object with a NSPasteboardType.

+ ( instancetype )UTIWithNSPboardType: ( NSString * )type conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The NSPasteboardType.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
  • dyn
    Allows dynamic UTIs.
Return value

An UTI object.

- initWithNSPboardType:conformingTo:

Initializes an UTI object with a NSPasteboardType.

- ( instancetype )initWithNSPboardType: ( NSString * )type conformingTo: ( UTI * )uti;

Parameters
  • type
    The NSPasteboardType.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
Return value

An UTI object.

+ initWithOSType:

Gets an UTI object with an OSType.

+ ( instancetype )UTIWithOSType: ( NSString * )type;

Parameters
  • type
    The OSType.
Return value

An UTI object.

See also

+ initWithOSType:

Gets an UTI object with an OSType.

+ ( instancetype )UTIWithOSType: ( NSString * )type allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The OSType.
  • dyn
    Allows dynamic UTIs.
Return value

An UTI object.

See also

- initWithOSType:

Initializes an UTI object with an OSType.

- ( instancetype )initWithOSType: ( NSString * )type;

Parameters
  • type
    The OSType.
Return value

An UTI object.

See also

+ initWithOSType:conformingTo:

Gets an UTI object with an OSType.

+ ( instancetype )UTIWithOSType: ( NSString * )type conformingTo: ( UTI * )uti;

Parameters
  • type
    The OSType.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
Return value

An UTI object.

See also

+ initWithOSType:conformingTo:

Gets an UTI object with an OSType.

+ ( instancetype )UTIWithOSType: ( NSString * )type conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The OSType.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
  • dyn
    Allows dynamic UTIs.
Return value

An UTI object.

See also

- initWithOSType:conformingTo:

Initializes an UTI object with an OSType.

- ( instancetype )initWithOSType: ( NSString * )type conformingTo: ( UTI * )uti;

Parameters
  • type
    The OSType.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
Return value

An UTI object.

See also

+ initWithString:

Gets an UTI object with a string.

+ ( instancetype )UTIWithString: ( NSString * )str;

Parameters
  • str
    The UTI identifier, as a string.
Return value

An UTI object.

+ initWithString:

Gets an UTI object with a string.

+ ( instancetype )UTIWithString: ( NSString * )str allowDynamic: ( BOOL )dyn;

Parameters
  • str
    The UTI identifier, as a string.
  • dyn
    Allows dynamic UTIs.
Return value

An UTI object.

- initWithString:

Initializes an UTI object with a string.

- ( instancetype )initWithString: ( NSString * )str;

Parameters
  • str
    The UTI identifier, as a string.
Return value

An UTI object.

+ initWithTag:tagClass:conformingTo:

Gets a uniform type identifier for the type indicated by the specified tag.

+ ( instancetype )UTIWithTag: ( NSString * )tag tagClass: ( UTITagClass )tagClass conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Discussion

This method is used to translate a type declared using another declaration mechanism (for example, MIME types) into a uniform type identifier. This method searches all UTI declarations for a matching translation. If a conforming parameter is assigned, the search is reduced to the subset of type identifiers that conform to that type.

Parameters
  • tag
    The tag to translate into a uniform type identifier.
  • tagClass
    The class of the tag parameter.
  • uti
    If not nil, the returned uniform type identifier must conform to this parameter.
  • dyn
    Allows dynamic UTIs.
Return value

An UTI object

See also

- initWithTag:tagClass:conformingTo:

Initializes a uniform type identifier for the type indicated by the specified tag.

- ( instancetype )initWithTag: ( NSString * )tag tagClass: ( UTITagClass )tagClass conformingTo: ( UTI * )uti NS_DESIGNATED_INITIALIZER;

Discussion

This method is used to translate a type declared using another declaration mechanism (for example, MIME types) into a uniform type identifier. This method searches all UTI declarations for a matching translation. If a conforming parameter is assigned, the search is reduced to the subset of type identifiers that conform to that type.

Parameters
  • tag
    The tag to translate into a uniform type identifier.
  • tagClass
    The class of the tag parameter.
  • uti
    If not nil, the returned uniform type identifier must conform to this parameter.
Return value

An UTI object

See also

+ inkTextTypeUTI

Gets an UTI object for the 'com.apple.ink.inktext' UTI.

+ ( instancetype )inkTextTypeUTI;

Discussion

The type identifier for Opaque InkText data.

Return value

An UTI object.

- isEqualToUTI:

Returns a Boolean value that indicates whether a given object is an UTI object and exactly equal the receiver.

- ( BOOL )isEqualToUTI: ( UTI * )uti;

Parameters
  • uti
    The UTI object to compare with the receiver.
Return value

YES if the uti is an UTI object and is exactly equal to the receiver, otherwise NO.

+ itemTypeUTI

Gets an UTI object for the 'public.item' UTI.

+ ( instancetype )itemTypeUTI;

Discussion

The generic abstract type identifier for most things (files, directories).

Return value

An UTI object.

+ javaSourceTypeUTI

Gets an UTI object for the 'com.sun.java-source' UTI.

+ ( instancetype )javaSourceTypeUTI;

Discussion

The type identifier for Java source code.

Return value

An UTI object.

+ JPEG2000TypeUTI

Gets an UTI object for the 'public.jpeg-2000' UTI.

+ ( instancetype )JPEG2000TypeUTI;

Discussion

The type identifier for a JPEG-2000 image.

Return value

An UTI object.

+ JPEGTypeUTI

Gets an UTI object for the 'public.jpeg' UTI.

+ ( instancetype )JPEGTypeUTI;

Discussion

The type identifier for a JPEG image.

Return value

An UTI object.

+ messageTypeUTI

Gets an UTI object for the 'public.message' UTI.

+ ( instancetype )messageTypeUTI;

Discussion

The abstract type identifier for messages (email, instant message, etc.).

Return value

An UTI object.

+ miscellaneousTypes

Gets the known uniform type identifiers for types that do not fit in other categories.

+ ( NSArray * )miscellaneousTypes;

Return value

An array with the corresponding UTIs.

+ mountPointTypeUTI

Gets an UTI object for the 'com.apple.mount-point' UTI.

+ ( instancetype )mountPointTypeUTI;

Discussion

The type identifier for a root directory of a volume.

Return value

An UTI object.

+ movieTypeUTI

Gets an UTI object for the 'public.movie' UTI.

+ ( instancetype )movieTypeUTI;

Discussion

An abstract type identifier for a media format which may contain both video and audio. Corresponds to what users would label a "movie"

Return value

An UTI object.

+ MP3TypeUTI

Gets an UTI object for the 'public.mp3' UTI.

+ ( instancetype )MP3TypeUTI;

Discussion

The type identifier for MP3 audio.

Return value

An UTI object.

+ MPEG4AudioTypeUTI

Gets an UTI object for the 'public.mpeg-4-audio' UTI.

+ ( instancetype )MPEG4AudioTypeUTI;

Discussion

The type identifier for a MPEG-4 audio layer (.m4a, or the MIME type audio/MP4).

Return value

An UTI object.

+ MPEG4TypeUTI

Gets an UTI object for the 'public.mpeg-4' UTI.

+ ( instancetype )MPEG4TypeUTI;

Discussion

The type identifier for a MPEG-4 movie.

Return value

An UTI object.

+ MPEGTypeUTI

Gets an UTI object for the 'public.mpeg' UTI.

+ ( instancetype )MPEGTypeUTI;

Discussion

The type identifier for a MPEG-1 or MPEG-2 movie.

Return value

An UTI object.

- objectForDeclarationDictionaryKey:

Gets a value from the UTI declaration's dictionary

- ( id )objectForDeclarationDictionaryKey: ( UTIDeclarationDictionaryKey )key;

Parameters
  • key
    The dictionary key.
Return value

The dictionary value corresponding to the specified key.

+ objectiveCPlusPlusSourceTypeUTI

Gets an UTI object for the 'public.objective-c-plus-plus-source' UTI.

+ ( instancetype )objectiveCPlusPlusSourceTypeUTI;

Discussion

The type identifier for Objective-C++ source code.

Return value

An UTI object.

+ objectiveCSourceTypeUTI

Gets an UTI object for the 'public.objective-c-source' UTI.

+ ( instancetype )objectiveCSourceTypeUTI;

Discussion

The type identifier for Objective-C source code (.m).

Return value

An UTI object.

+ OSTypeForString:

Decodes a tag string into an OSType.

+ ( OSType )OSTypeForString: ( NSString * )str;

Discussion

This method is only available for OS X targets. On iOS platforms, nil will be always returned.

Parameters
  • str
    A string that encodes an OSType.
Return value

The OSType that was encoded in the string.

+ packageTypeUTI

Gets an UTI object for the 'com.apple.package' UTI.

+ ( instancetype )packageTypeUTI;

Discussion

The type identifier for a packaged directory.

Return value

An UTI object.

+ PDFTypeUTI

Gets an UTI object for the 'com.adobe.pdf' UTI.

+ ( instancetype )PDFTypeUTI;

Discussion

The type identifier for Adobe PDF format.

Return value

An UTI object.

+ PICTTypeUTI

Gets an UTI object for the 'com.apple.pict' UTI.

+ ( instancetype )PICTTypeUTI;

Discussion

The type identifier for a Quickdraw PICT.

Return value

An UTI object.

+ plainTextTypeUTI

Gets an UTI object for the 'public.plain-text' UTI.

+ ( instancetype )plainTextTypeUTI;

Discussion

The type identifier for text with no markup and in an unspecified encoding.

Return value

An UTI object.

+ PNGTypeUTI

Gets an UTI object for the 'public.png' UTI.

+ ( instancetype )PNGTypeUTI;

Discussion

The type identifier for a PNG image.

Return value

An UTI object.

- preferredTagForTagClass:

Translates a uniform type identifier to a list of tags in a different type classification method.

- ( NSString * )preferredTagForTagClass: ( UTITagClass )tagClass;

Parameters
  • tagClass
    The class of the tags you want to return.
Return value

A string value

See also

+ quickTimeImageTypeUTI

Gets an UTI object for the 'com.apple.quicktime-image' UTI.

+ ( instancetype )quickTimeImageTypeUTI;

Discussion

The type identifier for a QuickTime image. Corresponds to the 'qtif' OSType.

Return value

An UTI object.

+ quickTimeMovieTypeUTI

Gets an UTI object for the 'com.apple.quicktime-movie' UTI.

+ ( instancetype )quickTimeMovieTypeUTI;

Discussion

The type identifier for a QuickTime movie.

Return value

An UTI object.

+ resolvableTypeUTI

Gets an UTI object for the 'com.apple.resolvable' UTI.

+ ( instancetype )resolvableTypeUTI;

Discussion

The type identifier for symbolic links and alias files.

Return value

An UTI object.

+ RTFDTypeUTI

Gets an UTI object for the 'com.apple.rtfd' UTI.

+ ( instancetype )RTFDTypeUTI;

Discussion

The type identifier for Rich Text Format Directory (RTF with content embedding, on-disk format).

Return value

An UTI object.

+ RTFTypeUTI

Gets an UTI object for the 'public.rtf' UTI.

+ ( instancetype )RTFTypeUTI;

Discussion

The type identifier for Rich Text Format.

Return value

An UTI object.

+ sourceCodeTypeUTI

Gets an UTI object for the 'public.source-code' UTI.

+ ( instancetype )sourceCodeTypeUTI;

Discussion

The abstract type identifier for source code (any language).

Return value

An UTI object.

+ stringForOSType:

Encodes an OSType into a string suitable for use as a tag argument.

+ ( NSString * )stringForOSType: ( OSType )type;

Discussion

This method is only available for OS X targets. On iOS platforms, nil will be always returned.

Parameters
  • type
    The OSType to convert.
Return value

A string that encodes the OSType.

+ symLinkTypeUTI

Gets an UTI object for the 'public.symlink' UTI.

+ ( instancetype )symLinkTypeUTI;

Discussion

The type identifier for a symbolic link.

Return value

An UTI object.

+ textTypes

Gets the known uniform type identifiers for text content.

+ ( NSArray * )textTypes;

Return value

An array with the corresponding UTIs.

+ textTypeUTI

Gets an UTI object for the 'public.text' UTI.

+ ( instancetype )textTypeUTI;

Discussion

The type identifier for all text-encoded data, including text with markup (HTML, RTF, etc.).

Return value

An UTI object.

+ TIFFTypeUTI

Gets an UTI object for the 'public.tiff' UTI.

+ ( instancetype )TIFFTypeUTI;

Discussion

The type identifier for a TIFF image.

Return value

An UTI object.

+ TXNTextAndMultimediaDataTypeUTI

Gets an UTI object for the 'com.apple.txn.text-multimedia-data' UTI.

+ ( instancetype )TXNTextAndMultimediaDataTypeUTI;

Discussion

The type identifier for MLTE (Textension) format for mixed text and multimedia data. Corresponds to the 'txtn' OSType.

Return value

An UTI object.

+ URLTypeUTI

Gets an UTI object for the 'public.url' UTI.

+ ( instancetype )URLTypeUTI;

Discussion

The type identifier for the bytes of a URL.

Return value

An UTI object.

+ UTF16ExternalPlainTextTypeUTI

Gets an UTI object for the 'public.utf16-external-plain-text' UTI.

+ ( instancetype )UTF16ExternalPlainTextTypeUTI;

Discussion

The type identifier for plain text in a UTF-16 encoding. If the encoded text does not include a byte order mark (BOM), the data has "external representation" byte order (big-endian).

Return value

An UTI object.

+ UTF16PlainTextTypeUTI

Gets an UTI object for the 'public.utf16-plain-text' UTI.

+ ( instancetype )UTF16PlainTextTypeUTI;

Discussion

The type identifier for plain text in a UTF-16 encoding in native byte order. The byte order mark (BOM) is optional. Correspondes to the 'utxt' OSType.

Return value

An UTI object.

+ UTF8PlainTextTypeUTI

Gets an UTI object for the 'public.utf8-plain-text' UTI.

+ ( instancetype )UTF8PlainTextTypeUTI;

Discussion

The type identifier for plain text in a UTF-8 encoding.

Return value

An UTI object.

+ UTIWithCFString:

Gets an UTI object with a CoreFoundation string.

+ ( instancetype )UTIWithCFString: ( CFStringRef )str;

Parameters
  • str
    The UTI identifier, as a CoreFoundation string.

+ UTIWithCFString:allowDynamic:

Gets an UTI object with a CoreFoundation string.

+ ( instancetype )UTIWithCFString: ( CFStringRef )str allowDynamic: ( BOOL )dyn;

Parameters
  • str
    The UTI identifier, as a CoreFoundation string.
  • dyn
    Allows dynamic UTIs.

+ UTIWithFileExtension:

Gets an UTI object with a file extension.

+ ( instancetype )UTIWithFileExtension: ( NSString * )extension;

Parameters
  • extension
    The file extension.

+ UTIWithFileExtension:allowDynamic:

Gets an UTI object with a file extension.

+ ( instancetype )UTIWithFileExtension: ( NSString * )extension allowDynamic: ( BOOL )dyn;

Parameters
  • extension
    The file extension.
  • dyn
    Allows dynamic UTIs.

+ UTIWithFileExtension:conformingTo:

Gets an UTI object with a file extension.

+ ( instancetype )UTIWithFileExtension: ( NSString * )extension conformingTo: ( UTI * )uti;

Parameters
  • extension
    The file extension.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.

+ UTIWithFileExtension:conformingTo:allowDynamic:

Gets an UTI object with a file extension.

+ ( instancetype )UTIWithFileExtension: ( NSString * )extension conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • extension
    The file extension.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
  • dyn
    Allows dynamic UTIs.

+ UTIWithMIMEType:

Gets an UTI object with a mime-type.

+ ( instancetype )UTIWithMIMEType: ( NSString * )type;

Parameters
  • type
    The mime-type.

+ UTIWithMIMEType:allowDynamic:

Gets an UTI object with a mime-type.

+ ( instancetype )UTIWithMIMEType: ( NSString * )type allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The mime-type.
  • dyn
    Allows dynamic UTIs.

+ UTIWithMIMEType:conformingTo:

Gets an UTI object with a mime-type.

+ ( instancetype )UTIWithMIMEType: ( NSString * )type conformingTo: ( UTI * )uti;

Parameters
  • type
    The mime-type.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.

+ UTIWithMIMEType:conformingTo:allowDynamic:

Gets an UTI object with a mime-type.

+ ( instancetype )UTIWithMIMEType: ( NSString * )type conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The mime-type.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
  • dyn
    Allows dynamic UTIs.

+ UTIWithNSPboardType:

Gets an UTI object with a NSPasteboardType.

+ ( instancetype )UTIWithNSPboardType: ( NSString * )type;

Parameters
  • type
    The NSPasteboardType.

+ UTIWithNSPboardType:allowDynamic:

Gets an UTI object with a NSPasteboardType.

+ ( instancetype )UTIWithNSPboardType: ( NSString * )type allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The NSPasteboardType.
  • dyn
    Allows dynamic UTIs.

+ UTIWithNSPboardType:conformingTo:

Gets an UTI object with a NSPasteboardType.

+ ( instancetype )UTIWithNSPboardType: ( NSString * )type conformingTo: ( UTI * )uti;

Parameters
  • type
    The NSPasteboardType.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.

+ UTIWithNSPboardType:conformingTo:allowDynamic:

Gets an UTI object with a NSPasteboardType.

+ ( instancetype )UTIWithNSPboardType: ( NSString * )type conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The NSPasteboardType.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
  • dyn
    Allows dynamic UTIs.

+ UTIWithOSType:

Gets an UTI object with an OSType.

+ ( instancetype )UTIWithOSType: ( NSString * )type;

Parameters
  • type
    The OSType.

+ UTIWithOSType:allowDynamic:

Gets an UTI object with an OSType.

+ ( instancetype )UTIWithOSType: ( NSString * )type allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The OSType.
  • dyn
    Allows dynamic UTIs.

+ UTIWithOSType:conformingTo:

Gets an UTI object with an OSType.

+ ( instancetype )UTIWithOSType: ( NSString * )type conformingTo: ( UTI * )uti;

Parameters
  • type
    The OSType.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.

+ UTIWithOSType:conformingTo:allowDynamic:

Gets an UTI object with an OSType.

+ ( instancetype )UTIWithOSType: ( NSString * )type conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Parameters
  • type
    The OSType.
  • uti
    If not nil, the returned UTI must conform to this parameter. Otherwise, nil will be returned.
  • dyn
    Allows dynamic UTIs.

+ UTIWithString:

Gets an UTI object with a string.

+ ( instancetype )UTIWithString: ( NSString * )str;

Parameters
  • str
    The UTI identifier, as a string.

+ UTIWithString:allowDynamic:

Gets an UTI object with a string.

+ ( instancetype )UTIWithString: ( NSString * )str allowDynamic: ( BOOL )dyn;

Parameters
  • str
    The UTI identifier, as a string.
  • dyn
    Allows dynamic UTIs.

+ UTIWithTag:tagClass:conformingTo:allowDynamic:

Gets a uniform type identifier for the type indicated by the specified tag.

+ ( instancetype )UTIWithTag: ( NSString * )tag tagClass: ( UTITagClass )tagClass conformingTo: ( UTI * )uti allowDynamic: ( BOOL )dyn;

Discussion

This method is used to translate a type declared using another declaration mechanism (for example, MIME types) into a uniform type identifier. This method searches all UTI declarations for a matching translation. If a conforming parameter is assigned, the search is reduced to the subset of type identifiers that conform to that type.

Parameters
  • tag
    The tag to translate into a uniform type identifier.
  • tagClass
    The class of the tag parameter.
  • uti
    If not nil, the returned uniform type identifier must conform to this parameter.
  • dyn
    Allows dynamic UTIs.

+ vCardTypeUTI

Gets an UTI object for the 'public.vcard' UTI.

+ ( instancetype )vCardTypeUTI;

Discussion

The type identifier for VCard format.

Return value

An UTI object.

+ videoTypeUTI

Gets an UTI object for the 'public.video' UTI.

+ ( instancetype )videoTypeUTI;

Discussion

An abstract type identifier for pure video data(no audio).

Return value

An UTI object.

+ volumeTypeUTI

Gets an UTI object for the 'public.volume' UTI.

+ ( instancetype )volumeTypeUTI;

Discussion

The type identifier for the root folder of a volume/mount point.

Return value

An UTI object.

+ webArchiveTypeUTI

Gets an UTI object for the 'com.apple.webarchive' UTI.

+ ( instancetype )webArchiveTypeUTI;

Discussion

The type identifier for the WebKit web archive format

Return value

An UTI object.

+ XMLTypeUTI

Gets an UTI object for the 'public.xml' UTI.

+ ( instancetype )XMLTypeUTI;

Discussion

The type identifier for XML data.

Return value

An UTI object.

conformsTo

Returns the UTIs to which this identifier conforms.

@property( nonatomic, readonly ) NSArray * conformsTo;

declaration

Returns a uniform type’s declaration.

@property( nonatomic, readonly ) NSDictionary * declaration;

Discussion

A uniform type identifier is declared in a bundle’s information property list (info.plist). This method extracts and returns a dictionary that contains the complete declaration of the uniform type identifier. This is useful when your application needs to access properties that does not have a built-in accessor method.

declaringBundleURL

Returns the location of a bundle containing the declaration for a type.

@property( nonatomic, readonly ) NSURL * declaringBundleURL;

description

Returns the localized, user-readable type description string associated with a uniform type identifier.

@property( nonatomic, readonly ) NSString * description;

Discussion

The localized string that describes the uniform type is found in the type’s declaration.

exportedTypes

Returns an array of exported UTI declarations.

@property( nonatomic, readonly ) NSArray * exportedTypes;

iconFile

Returns the name of the bundle icon resource to associate with this UTI.

@property( nonatomic, readonly ) NSString * iconFile;

identifier

Returns the uniform type identifier for the declared type.

@property( nonatomic, readonly ) NSString * identifier;

importedTypes

Returns an array of imported UTI declarations.

@property( nonatomic, readonly ) NSArray * importedTypes;

isDynamic

Whether the UTI is dynamic or not

@property( nonatomic, readonly ) BOOL isDynamic;

preferredFilenameExtension

Returns the preferred filename extension for an UTI.

@property( nonatomic, readonly ) NSString * preferredFilenameExtension;

preferredMIMEType

Returns the preferred mime-type for an UTI.

@property( nonatomic, readonly ) NSString * preferredMIMEType;

preferredNSPboardType

Returns the preferred NSPasteboardType for an UTI.

@property( nonatomic, readonly ) NSString * preferredNSPboardType;

preferredOSType

Returns the preferred OSType for an UTI.

@property( nonatomic, readonly ) NSString * preferredOSType;

See also

referenceURL

Returns the URL of a reference document describing this type.

@property( nonatomic, readonly ) NSURL * referenceURL;

tagSpecifications

Returns a dictionary containing conversions of the uniform type identifier to equivalent tags in other classification schemes.

@property( nonatomic, readonly ) NSDictionary * tagSpecifications;

version

Returns a version string.

@property( nonatomic, readonly ) NSString * version;

Types

UTIDeclarationDictionaryKey

The known keys for values found in a UTI dictionary.

typedef enum { UTIDeclarationDictionaryKeyExportedType = 0x00, UTIDeclarationDictionaryKeyImportedType = 0x01, UTIDeclarationDictionaryKeyIdentifier = 0x02, UTIDeclarationDictionaryKeyTagSpecification = 0x03, UTIDeclarationDictionaryKeyConformsTo = 0x04, UTIDeclarationDictionaryKeyDescription = 0x05, UTIDeclarationDictionaryKeyIconFile = 0x06, UTIDeclarationDictionaryKeyReferenceURL = 0x07, UTIDeclarationDictionaryKeyVersion = 0x08 } UTIDeclarationDictionaryKey;

Constants
  • UTIDeclarationDictionaryKeyExportedType
    An array of exported UTI declarations.
  • UTIDeclarationDictionaryKeyImportedType
    An array of imported UTI declarations.
  • UTIDeclarationDictionaryKeyIdentifier
    The uniform type identifier for the declared type. This key is required.
  • UTIDeclarationDictionaryKeyTagSpecification
    A dictionary containing conversions of the uniform type identifier to equivalent tags in other classification schemes.
  • UTIDeclarationDictionaryKeyConformsTo
    The UTIs to which this identifier conforms.
  • UTIDeclarationDictionaryKeyDescription
    A user-visible description of this type (may be localized).
  • UTIDeclarationDictionaryKeyIconFile
    The name of the bundle icon resource to associate with this UTI.
  • UTIDeclarationDictionaryKeyReferenceURL
    The URL of a reference document describing this type.
  • UTIDeclarationDictionaryKeyVersion
    A version string.

UTITagClass

The tagging classification schemes that a uniform type identifier can be converted to and from.

typedef enum { UTITagClassFilenameExtension = 0x00, UTITagClassMIMEType = 0x01, UTITagClassNSPboardType = 0x02, UTITagClassOSType = 0x03 } UTITagClass;

Discussion

The 'UTITagClassNSPboardType' and 'UTITagClassOSType' values are only available for OS X targets. Using them on iOS platforms will always return a nil value.

Constants
  • UTITagClassFilenameExtension
    Indicates that the tag is a filename extension.
  • UTITagClassMIMEType
    Indicates that the tag is a MIME type.
  • UTITagClassNSPboardType
    Indicates that the tag is an NSPasteBoard type.
  • UTITagClassOSType
    Indicates that the tag is an OSType.

Macros

NS_DESIGNATED_INITIALIZER

Marks a designated initializer of an Objective-C class.

#ifndef NS_DESIGNATED_INITIALIZER #define NS_DESIGNATED_INITIALIZER #endif

Discussion

This macro is defined if not available, in order to support old compilers.