Obtains the application-defined properties of an indexed document.
SDK
- macOS 10.3+
Framework
- Core Services
Declaration
func SKIndexCopyDocumentProperties(_ inIndex: SKIndex!, _ inDocument: SKDocument!) -> Unmanaged<CFDictionary>!
Parameters
in
Index The index containing the document URL object whose properties you want to copy.
in
Document The document URL object whose properties you want to copy.
Return Value
A CFDictionary object containing the document URL object’s (SKDocumentRef’s) properties, or NULL
on failure.
Discussion
Search Kit document URL objects (of type SKDocument
) can have an optional, application-defined properties dictionary to hold any information you’d like to associate with the document represented by a document URL object—such as timestamp, keywords, and so on. Use SKIndex
to add a properties dictionary to a document URL object, and this function to obtain a copy of the dictionary.