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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com