Function

ODQuerySetDispatchQueue

Retrieves results from a query asynchronously by adding the query to a dispatch queue.

Declaration

void ODQuerySetDispatchQueue(ODQueryRef query, dispatch_queue_t queue);

Parameters

inQuery

The query.

inQueue

The dispatch queue.

Discussion

When the query is complete, the query’s callback function is called with both inResults and inError set to NULL.

See Also

Working with Queries

ODQueryCopyResults

Returns results from a query synchronously.

ODQueryCreateWithNode

Creates a query with a node using provided parameters.

ODQueryCreateWithNodeType

Creates a query for a particular node type using provided parameters.

ODQueryGetTypeID

Returns the type ID for an Open Directory query.

ODQueryScheduleWithRunLoop

Retrieves results from a query asynchronously by scheduling the query in a run loop.

ODQuerySetCallback

Sets the callback for an asynchronous query.

ODQuerySynchronize

Restarts a query, disposing of any results it has obtained.

ODQueryUnscheduleFromRunLoop

Removes a query from a specified run loop.