Re: Possible blunder with CALayers

2009-02-27 Thread Gordon Apple
The view's layer ignores the flipped flag. I added my own "content" layer with an inversion transform. On 2/27/09 8:01 AM, "cocoa-dev-requ...@lists.apple.com" wrote: > When ever I add a Layer my "first" layer flickers and > one more thing , how do I set the Flip flag , I am overriding the

Re: Possible blunder with CALayers

2009-02-27 Thread rajesh
Hi Patrick, I did change the code and tried some possible ways resizing seems no longer to be a problem (indeed you are an expert) but... When ever I add a Layer my "first" layer flickers and one more thing , how do I set the Flip flag , I am overriding the "isFlipped" in myView , still dra

Re: Possible blunder with CALayers

2009-02-27 Thread Patrick Mau
Hallo rajesh I'm no expert and just took a brief look at your code. You are being notified on your NSView frame change and add all your layers to your NSView again in 'layout'. This happens on each resize. This looks very suspicious, because you should only add your layers once and later cha

Re: Possible blunder with CALayers

2009-02-27 Thread rajesh
Sorry forgot to mention: the gray boxes flicker a lot could be Root Layer delayed resizing. On Feb 27, 2009, at 10:25 AM, rajesh wrote: Hi All, I recently posted a message with subject "View with Subviews + Drawing on top of everything" and I got convinced to use CALayers in my view inste

Possible blunder with CALayers

2009-02-27 Thread rajesh
Hi All, I recently posted a message with subject "View with Subviews + Drawing on top of everything" and I got convinced to use CALayers in my view instead of NSView's. summary: I added few CALayers to myView and tried to resize myView and result was rusty and snaggy. When I used NSView