Instance Method


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


- (void)unscheduleFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode;



The run loop instance to unschedule.


The mode to unschedule.


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 connection on a different run loop or mode before starting it with the start method. You can schedule a connection on multiple run loops and modes, or on the same run loop in multiple modes. Use this method to unschedule the connection from an undesired run loop and mode before starting the connection.

You cannot reschedule a connection after it has started. It is not necessary to unschedule a connection after it has finished.

See Also

Scheduling Delegate Method Calls

- scheduleInRunLoop:forMode:

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

- setDelegateQueue:

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