NSUrlConnection doesn't work in NSEventTrackingRunLoopMode
NSUrlConnection doesn't work in NSEventTrackingRunLoopMode
- Subject: NSUrlConnection doesn't work in NSEventTrackingRunLoopMode
- From: "Erik Sjödin" <email@hidden>
- Date: Mon, 26 Jun 2006 01:34:56 +0200
I have a NSView that when resized beyond a certain size creates an
object that initiates a NSURLConnection. The connection is initiated
but it does not trigger any of its delegates (didReceiveResponse etc)
until after the viewDidEndLiveResize. I want to download data
continously while I'm resizing the view but as it is now the download
doesn't start until after I've stopped resizing the view.
To quote the docs: "For the connection to work correctly the calling
thread's run loop must be operating in the default run loop mode." As
I'm resizing the window I'm in event tracking run loop mode. Is the
only solution to this behavior to create the nsurlconnection in a new
thread that always is running in default run mode (I'm trying to do
this but it doesn't really want to go my way) or is there another
easier way?
thanks //erik
_______________________________________________
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