Contents

SKIndexDocumentIteratorGetTypeID()

Gets the type identifier for Search Kit document iterators.

Declaration

func SKIndexDocumentIteratorGetTypeID() -> CFTypeID

Return Value

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

Discussion

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

Search Kit is thread-safe. You can use separate indexing and searching threads. Your application is responsible for ensuring that no more than one process is open at a time for writing to an index.

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

See Also

Managing Indexes