Contents

SKDocumentGetTypeID()

Gets the type identifier for Search Kit document URL objects.

Declaration

func SKDocumentGetTypeID() -> CFTypeID

Return Value

A CFTypeID object containing the type identifier for the document URL object (of type SKDocument).

Discussion

Search Kit represents document URL objects with the SKDocument opaque type. If your code needs to determine whether a particular data type is a document URL object, you can use this function along with the CFGetTypeID(_:) function and perform a comparison.

Never hard-code the document URL object type ID because it can change from one release of macOS to another.

See Also

Working with Documents and Terms