Instance Method

setDelegateQueue:

Determines the operation queue that is used to call methods on the connection’s delegate.

Declaration

- (void)setDelegateQueue:(NSOperationQueue *)queue;

Parameters

queue

The operation queue to use when calling delegate methods.

Discussion

By default, a connection is scheduled on the current thread in the default mode when it is created. If you create a connection with the initWithRequest:delegate:startImmediately: method and provide NO for the startImmediately parameter, you can instead schedule the connection on an operation queue before starting it with the start method.

You cannot reschedule a connection after it has started.

It is an error to schedule delegate method calls with both this method and the scheduleInRunLoop:forMode: method.

See Also

Scheduling Delegate Method Calls

- scheduleInRunLoop:forMode:

Determines the run loop and mode that the connection uses to call methods on its delegate.

- unscheduleFromRunLoop:forMode:

Causes the connection to stop calling delegate methods in the specified run loop and mode.