Re: CALayer maybe silly question
Re: CALayer maybe silly question
- Subject: Re: CALayer maybe silly question
- From: vincent habchi <email@hidden>
- Date: Mon, 25 Jan 2010 22:08:49 +0100
David,
Le 25 janv. 2010 à 21:39, David Duncan a écrit :
> If you want to draw to a layer on a separate thread, you need to run the runloop on that thread, as Core Animation is pretty highly dependent on the run loop operating. If you call -setNeedsDisplay on a thread where you never run the runloop, then it is likely that the layer's -display method will not be called until the thread terminates, which is likely your issue.
Okay, thanks for your help. I'll need to alter completely the way the drawing routine works. At that point, I had a thread per call to DrawLayer:inContext:. Now I'll have to setup a real thread and proceed the drawings one after the other… :)
Thanks again for your valuable input.
Vincent_______________________________________________
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