On Mar 7, 2011, at 9:00 PM, Chris Markle <[email protected]> wrote:

> I guess in general I an wondering how I correctly wait for things to
> happen that I absolutely positively need to be done before I
> continue...

You rework your approach to not require these things to be complete before your 
code continues.

Throwing up a modal "please wait" UI until the callback gets executed is a 
common approach whenever the user can't logically expect to proceed until the 
app is done with some processing. An asynchronous API is preferable because it 
lets you return to the runloop and process user events, rather than get stuck 
in a busy loop that is indistinguishable to the OS from a hung process.

--Kyle Sluder_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to