CALayer subclass question

2008-06-04 Thread Huibert Aalbers
Hi, I am starting to work with Core Animation. I have tried to subclass CALayer but I am having problems because for some reason the drawInContext method never gets called, even though I invoke setNeedsDisplay on the layer. What is weird though is that if I override the display method I

Re: CALayer subclass question

2008-06-04 Thread Brian Christensen
On Jun 4, 2008, at 11:19, Huibert Aalbers wrote: I am starting to work with Core Animation. I have tried to subclass CALayer but I am having problems because for some reason the drawInContext method never gets called, even though I invoke setNeedsDisplay on the layer. What is weird

Re: CALayer subclass question

2008-06-04 Thread Huibert Aalbers
Brian, Thanks, but it didn't work. My understanding is that either setNeedsDisplay or setNeedsDisplayOnBoundsChange:YES can be used to force the layer to draw its content, but something is not working for me. Huibert On 04/06/2008, at 10:49 a.m., Brian Christensen wrote: On Jun 4,