SKDocumentGetTypeID()
Gets the type identifier for Search Kit document URL objects.
Declaration
func SKDocumentGetTypeID() -> CFTypeIDReturn Value
A CFTypeID object containing the type identifier for the document URL object (of type SKDocument).
Discussion
Search Kit represents document URL objects with the SKDocument opaque type. If your code needs to determine whether a particular data type is a document URL object, you can use this function along with the CFGetTypeID(_:) function and perform a comparison.
Never hard-code the document URL object type ID because it can change from one release of macOS to another.
See Also
Working with Documents and Terms
SKDocumentCreateWithURL(_:)SKDocumentCreate(_:_:_:)SKDocumentCopyURL(_:)SKDocumentGetName(_:)SKDocumentGetParent(_:)SKDocumentGetSchemeName(_:)SKIndexCopyDocumentForDocumentID(_:_:)SKIndexCopyInfoForDocumentIDs(_:_:_:_:_:)SKIndexCopyDocumentRefsForDocumentIDs(_:_:_:_:)SKIndexCopyDocumentURLsForDocumentIDs(_:_:_:_:)SKIndexCopyDocumentIDArrayForTermID(_:_:)SKIndexCopyTermIDArrayForDocumentID(_:_:)SKIndexCopyTermStringForTermID(_:_:)SKIndexGetTermIDForTermString(_:_:)SKIndexSetDocumentProperties(_:_:_:)SKIndexCopyDocumentProperties(_:_:)SKIndexGetDocumentState(_:_:)SKIndexGetDocumentTermCount(_:_:)SKIndexGetDocumentTermFrequency(_:_:_:)SKIndexGetTermDocumentCount(_:_:)SKIndexGetDocumentID(_:_:)