Contents

SKSearchResultsGetTypeID

Gets the type identifier for Search Kit search results.

Declaration

CFTypeID SKSearchResultsGetTypeID(void);

Return Value

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

Discussion

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

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

See Also

Legacy Support for Synchronous Searching