Re: waiting for async callback in main thread
Re: waiting for async callback in main thread
- Subject: Re: waiting for async callback in main thread
- From: Jens Alfke <email@hidden>
- Date: Tue, 27 Oct 2009 12:42:20 -0700
On Oct 27, 2009, at 12:11 PM, Alexander Cohen wrote:
100% agree with you, and that's what i would normally do. But
unfortunately, this time i must wait in the mainthread for the
callback. I know it's wrong, but this time i've gotta do it.
Then use a while loop to run the runloop until your callback's been
invoked. The reason this is described as wrong is because it blocks
the main thread; but if you have to block the main thread, this is the
way to do it.
—Jens_______________________________________________
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