Function

UTTypeCopyPreferredTagWithClass(_:_:)

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

Declaration

func UTTypeCopyPreferredTagWithClass(_ inUTI: CFString, _ inTagClass: CFString) -> Unmanaged<CFString>?

Parameters

inUTI

The uniform type identifier to convert.

inTagClass

The class of the tags you want to return. For more information, see Type Tag Classes.

Return Value

An array of tags (as CFStrings), or NULL if there was no translation available to convert the uniform type identifier to the specified class.

Discussion

If the type declaration included more than one tag with the specified class, the first tag in the declared tag array is the preferred tag.