Function

SKSearchGetTypeID

Gets the type identifier for Search Kit search objects.

Declaration

CFTypeID SKSearchGetTypeID(void);

Return Value

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

Discussion

Search Kit represents searches with search objects (SKSearchRef 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

SKSearchCreate

Creates an asynchronous search object for querying an index, and initiates search.

SKSearchFindMatches

Extracts search result information from a search object.

SKSearchCancel

Cancels an asynchronous search request.