Returns the current result at the given index.
- macOS 10.4+
- Core Services
The index into the query's result list. If the index is negative, or is equal to or larger than the current number of results in the query, the behavior is undefined.
Returns the MDItemRef currently at the given index, or if a result-creation function has been set, returns the result returned by that function.
This function causes the result object to be created if it hasn't been created already. For performance reasons you should only request objects that you require. If possible, call this function to fetch only the results you need to display or otherwise process.
Note that the index of a particular result can change over time if the query is configured to allow live-updates.