Contents

UTTypeCopyDeclaration(_:)

Returns a uniform type’s declaration.

Declaration

func UTTypeCopyDeclaration(_ inUTI: CFString) -> Unmanaged<CFDictionary>?

Parameters

  • inUTI:

    A uniform type identifier.

Return Value

A dictionary that contains the uniform type’s declaration, or NULL if no declaration for that type can be found.

Discussion

A uniform type identifier is declared in a bundle’s information Property list (info.plist). This function 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 function. For more information on the dictionary format, see Uniform Type Identifiers Overview.