Gets the number of occurrences of a term in a document.
- macOS 10.3+
- Core Services
The index containing the text of the document whose term count you are interested in.
The ID of the document URL object whose associated term count you are interested in. Obtain a document ID by calling
Get Document ID(_: _:)
The ID of the term whose number of occurrences you want.
CFIndex object containing the number of occurrences of a term in a document.
In versions of macOS prior to OS X v10.4, the parameter type for
CFIndex. In macOS 10.4 and later, the parameter type is