+[NSApp nextEventMatchingMask:...] from other thread
+[NSApp nextEventMatchingMask:...] from other thread
- Subject: +[NSApp nextEventMatchingMask:...] from other thread
- From: Sidney San MartÃn <email@hidden>
- Date: Wed, 6 May 2009 12:55:53 -0400
I recently found out that +[NSURLConnection
sendSynchronousRequest:...] leaks in Tiger, so I'm trying to write my
own implementation (these connections are already threaded and make
more sense to run synchronously). I use +[NSApp
nextEventMatchingMask:...] in the custom implementation to block until
the connection is finished, and it works great... in the main thread.
If I call my code from a different thread, nextEventMatchingMask:
returns nill instantly.
Run loops and event handling is a little bit above my current skill
level. How can I get the desired behavior here?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden