• 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: some advice on asynchronous control please
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: some advice on asynchronous control please


  • Subject: Re: some advice on asynchronous control please
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 19 Feb 2010 14:19:18 -0800


On Feb 19, 2010, at 2:06 PM, Damien Cooke wrote:

I have a situation where I am using a 3rd party library to manage content on their service. When I delete an entry the method requires a call back all good. Now I need to wait for that call back to be called to know if it was successful or not. In the call back I can set a boolean to indicate success or not but waiting for that to be set is my issue. What is the right way to wait for it?

You'll have to return back to the event loop / runloop after calling the delete-entry function. That lets the UI remain responsive. Then your callback function can call into whatever code you have that should run after the operation completes.


—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


References: 
 >some advice on asynchronous control please (From: Damien Cooke <email@hidden>)

  • Prev by Date: some advice on asynchronous control please
  • Next by Date: Re: Appropriate -setWantsLayer: timing
  • Previous by thread: some advice on asynchronous control please
  • Next by thread: Re: some advice on asynchronous control please
  • Index(es):
    • Date
    • Thread