Re: CALayer -drawInContext and GCD
Re: CALayer -drawInContext and GCD
- Subject: Re: CALayer -drawInContext and GCD
- From: Vincent Habchi <email@hidden>
- Date: Fri, 3 Sep 2010 16:44:38 +0200
Le 3 sept. 2010 à 00:17, David Duncan a écrit :
> Doing so would cause you all manners of pain and suffering, the most common of which is things "mostly" working but occasionally your drawing going into the wrong view. Basically *never* use the context given to you in -drawInContext: outside of that invocation.
Understood.
I have implemented what you suggested. I get a strange behavior: the first time I enqueue a request for display, everything is fine. But then I cannot draw any further: any subsequent call, albeit correctly enqueued in the block, does nothing: the -(void)display method is called, but it does not forward to -(void)drawInContext. As if there were some initialization or finalization step lacking.
Any idea?
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