Creates an index-based iterator for document URL objects (of type
SKDocument) owned by a parent document URL object.
- macOS 10.3+
- Core Services
The index you want to iterate across.
The document URL object that is the parent of the document URL objects you want to examine. Pass
NULLto get the top item in an index. See
SKDocumentfor a discussion of how to get the full URL for a document URL object.
An index-based document iterator.
When you want to iterate across all the documents represented in an index, use this function to create an iterator and then call
SKIndex in turn for each document URL object (of type
SKDocument) in the index.
Document iterators iterate over a single level of an index. Your code is responsible for descending through a hierarchy of documents in an index.
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.
When your application no longer needs the iterator, dispose of it by calling