Re: Using asynchronous APIs with NSOperation
Re: Using asynchronous APIs with NSOperation
- Subject: Re: Using asynchronous APIs with NSOperation
- From: James Montgomerie <email@hidden>
- Date: Thu, 24 Feb 2011 15:35:43 +0000
Dave Dribin has written excellent blog posts about this - start here:
http://www.dribin.org/dave/blog/archives/2009/05/05/concurrent_operations/
Jamie
On 24 Feb 2011, at 15:08, Matt DeFoor wrote:
> I have been doing research in preparing to switch from manual
> threading to the usage of NSOperation. Because my operations will be
> executing asynchronous APIs from the CoreServices framework, it
> appears that I'd be better off using concurrent operations. What is
> not clear to me is, if I provide a callback to an asynchronous API, on
> which thread is the callback called?
>
> Also, does anyone have experience using NSOperation with asynchronous
> APIs that take a runloop and a runloop mode as parameters? From my
> research, it is not clear to me how one would pass the required
> runloop parameters in the concurrent operation's start: method.
> Perhaps it is as simple as using the main thread's runloop, but that
> doesn't seem right.
>
> Thanks in advance,
> Matt
> _______________________________________________
>
> 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
_______________________________________________
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