Instance Method

stopQuery

Stops the receiver’s current query from gathering any further results.

Declaration

- (void)stopQuery;

Discussion

The receiver first completes gathering any unprocessed results. If a query is stopped before the gathering phase finishes, it does not post an NSMetadataQueryDidStartGatheringNotification notification.

You call this function to stop a query that is generating too many results to be useful but you still want to access the available results. If the receiver is sent a startQuery message after performing this method, the existing results are discarded.

See Also

Running Queries

started

A Boolean value that indicates whether the query has started. (read-only)

- startQuery

Attempts to start the query.

gathering

A Boolean value that indicates whether the receiver is in the initial gathering phase of the query. (read-only)

stopped

A Boolean value that indicates whether the query has stopped.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software