NSURLConnection dependency on RunLoop (Sanity check)
NSURLConnection dependency on RunLoop (Sanity check)
- Subject: NSURLConnection dependency on RunLoop (Sanity check)
- From: Andrei Tchijov <email@hidden>
- Date: Thu, 21 Jul 2005 15:23:16 -0400
Hi,
Could some one please tell me if following statement/observation
is correct:
NSURLConnection when used in asynchronous mode
( initWithRequest:delegate: ) starts couple threads to deal with
actual IO but also register some inputs with RunLoop of the thread
which created it. As a result, nothing will happen with such
connection until that RunLoop had a chance to "run" (at least none of
delegate methods are going to be invoked).
The way I solved this problem (feature) is by creating new
thread each time I need to use NSURLConnection. Is there a better way?
You comments will be highly appreciated.
Andrei Tchijov
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden