• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to wait for methods with result/completion blocks to finish?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to wait for methods with result/completion blocks to finish?


  • Subject: Re: How to wait for methods with result/completion blocks to finish?
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 08 Mar 2011 00:37:09 -0800

On Mar 7, 2011, at 9:00 PM, Chris Markle <email@hidden> 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@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

References: 
 >How to wait for methods with result/completion blocks to finish? (From: Chris Markle <email@hidden>)

  • Prev by Date: Re: how to start rainbow cursor
  • Next by Date: Re: Length of NSWindow's stringWithSavedFrame result?
  • Previous by thread: How to wait for methods with result/completion blocks to finish?
  • Next by thread: Re: How to wait for methods with result/completion blocks to finish?
  • Index(es):
    • Date
    • Thread