Function

SKSearchGetTypeID()

Gets the type identifier for Search Kit search objects.

Declaration

func SKSearchGetTypeID() -> CFTypeID

Return Value

A CFTypeID object containing the type identifier for the SKSearch opaque type.

Discussion

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

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

See Also

Fast Asynchronous Searching