SKIndexDocumentIteratorGetTypeID()
Gets the type identifier for Search Kit document iterators.
Declaration
func SKIndexDocumentIteratorGetTypeID() -> CFTypeIDReturn 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
SKIndexAddDocumentWithText(_:_:_:_:)SKIndexAddDocument(_:_:_:_:)SKIndexFlush(_:)SKIndexCompact(_:)SKIndexGetDocumentCount(_:)SKIndexGetMaximumDocumentID(_:)SKIndexGetMaximumTermID(_:)SKIndexDocumentIteratorCreate(_:_:)SKIndexDocumentIteratorCopyNext(_:)SKIndexGetAnalysisProperties(_:)SKIndexMoveDocument(_:_:_:)SKIndexRemoveDocument(_:_:)SKIndexRenameDocument(_:_:_:)SKIndexSetMaximumBytesBeforeFlush(_:_:)SKIndexGetMaximumBytesBeforeFlush(_:)