UTI Text Types

These are the uniform type identifiers for text content.

Topics

Constants

let kUTTypeText: CFString

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

let kUTTypePlainText: CFString

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

let kUTTypeUTF8PlainText: CFString

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

let kUTTypeUTF16ExternalPlainText: CFString

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).

let kUTTypeUTF16PlainText: CFString

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.

let kUTTypeRTF: CFString

The type identifier for Rich Text Format.

let kUTTypeHTML: CFString

The type identifier for HTML, any version.

let kUTTypeXML: CFString

The type identifier for XML data.

let kUTTypeSourceCode: CFString

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

let kUTTypeCSource: CFString

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

let kUTTypeObjectiveCSource: CFString

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

let kUTTypeCPlusPlusSource: CFString

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

let kUTTypeObjectiveCPlusPlusSource: CFString

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

let kUTTypeCHeader: CFString

The type identifier for a C header.

let kUTTypeCPlusPlusHeader: CFString

The type identifier for a C++ header.

let kUTTypeJavaSource: CFString

The type identifier for Java source code.