Function

ODQueryCopyResults(_:_:_:)

Returns results from a query synchronously.

Declaration

func ODQueryCopyResults(_ query: ODQueryRef!, _ allowPartialResults: Bool, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Unmanaged<CFArray>!

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

func ODQueryGetTypeID() -> CFTypeID

Returns the type ID for an Open Directory query.

func ODQueryScheduleWithRunLoop(ODQueryRef!, CFRunLoop!, CFString!)

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

func ODQuerySetDispatchQueue(ODQueryRef!, DispatchQueue!)

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

func ODQuerySynchronize(ODQueryRef!)

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