On Sep 2, 2010, at 7:39 AM, Vincent Habchi wrote:

> I just wanted to know someone has already tried to successfully send a 
> CALayer -drawInContext method to a GCD dispatch queue. I suspect this is not 
> possible, because of main loop related issue, but this is unclear. 

This can be done, but you have to ensure that your layer's drawing is 
threadsafe. Should be as simple as this with that precondition met:

dispatch_async(queue, ^{
        [layer display];
        [CATransaction flush];
}
--
David Duncan

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to