Re: some advice on asynchronous control please
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