Function

ODQueryCopyResults

Returns results from a query synchronously.

Declaration

CFArrayRef ODQueryCopyResults(ODQueryRef query, bool allowPartialResults, CFErrorRef *error);

Parameters

inQuery

The query.

inAllowPartialResults

If true, only immediately available results are returned; otherwise, the function waits until all results are available.

outError

An error reference for error details. Can be NULL.

Return Value

The results of the query in an array of ODRecord objects.

See Also

Working with Queries

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.

ODQuerySetDispatchQueue

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

ODQuerySynchronize

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

ODQueryUnscheduleFromRunLoop

Removes a query from a specified run loop.