Enumerates the current set of results using the given options and block.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The block to execute for each current result.
This method disables the query at the start of the iteration and reenables it upon completion.
Getting Query Results
An array containing the query’s results.
The number of results returned by the query. (read-only)
Returns the index of a query result object in the receiver’s results array.
An array containing hierarchical groups of query results. (read-only)
A dictionary containing the value lists generated by the query.
NSMetadataQueryAttributeValueTuple class represents attribute-value tuples, which are objects that contain the attribute name and value of a metadata attribute.
The queue on which query result notifications are posted.