Contents

UTTypeReference

An object that represents a type of data to load, send, or receive.

Declaration

class UTTypeReference

Overview

The UTTypeReference object may represent files on disk, abstract data types with no on-disk representation, or entirely unrelated hierarchical classification systems, such as hardware. Each instance has a unique identifier, and helpful properties, preferredFilenameExtension and preferredMIMEType.

The UTTypeReference object may provide additional information related to the type. For example, it may include a localized user-facing description, a reference URL to technical documentation about the type, or its version number. You can look up types by their conformance to get either a type or a list of types that are relevant to your use case.

To define your own types in your app’s Info.plist, see Defining file and data types for your app.

Topics

Looking up a type

Creating a type

Identifying a type

Obtaining tags

Obtaining additional type information

Checking a type’s relationship to another type

Describing a type

Type Properties

Initializers

Default Implementations

See Also

Uniform type identifiers