Re: Understanding layer-backed views

2011-07-19 Thread Michael Crawford
Graham; Scott, I have a follow-up question on this topic, if you don't mind. Do either of you have a recommendation on the idea of adding a layer-hosting view as a subview of a layer-backed view? I'm thinking of adding a virtual keyboard to an existing app that is layer-backed. I would like

Re: Understanding layer-backed views

2011-07-19 Thread Scott Anguish
On Jul 19, 2011, at 12:27 PM, Michael Crawford wrote: Graham; Scott, I have a follow-up question on this topic, if you don't mind. Do either of you have a recommendation on the idea of adding a layer-hosting view as a subview of a layer-backed view? Yes. You shouldn’t. When you turn

Re: Understanding layer-backed views

2011-07-19 Thread Michael Crawford
Well, I suppose I could make sure the window's contentView is not layer backed and then put all of the content that used to be in that view into a new layer-backed view and then add the new layer-backed view as a subview of the contentView. Next, I create my layer-hosting view and add it to

Re: Understanding layer-backed views

2011-07-19 Thread Scott Anguish
Exactly. That’s an excellent example and should work fine. Great solution. On Jul 19, 2011, at 11:59 PM, Michael Crawford wrote: Well, I suppose I could make sure the window's contentView is not layer backed and then put all of the content that used to be in that view into a new

Re: Understanding layer-backed views

2011-06-22 Thread Scott Anguish
Yep, I'm aware of the setWantsLayer/setLayer order making a difference. In my case I want a layer-hosting view, not a layer-backed view. However, my question isn't really about that, but about what is done when you check the box next to the layer in Interface Builder, in the

Understanding layer-backed views

2011-06-21 Thread Graham Cox
I'm getting confused and frustrated by Core Animation layers (again). Mac OS. If I simply add a NSView to a window in IB, not subclassed, but turn on Core Animation layer for that view and set a background colour, shouldn't it appear with that colour in the window? That's my expectation, but

Re: Understanding layer-backed views

2011-06-21 Thread Scott Anguish
On Jun 21, 2011, at 9:57 PM, Graham Cox wrote: I'm getting confused and frustrated by Core Animation layers (again). Mac OS. If I simply add a NSView to a window in IB, not subclassed, but turn on Core Animation layer for that view and set a background colour, shouldn't it appear with

Re: Understanding layer-backed views

2011-06-21 Thread Graham Cox
On 22/06/2011, at 2:21 PM, Scott Anguish wrote: I'm getting confused and frustrated by Core Animation layers (again). Mac OS. If I simply add a NSView to a window in IB, not subclassed, but turn on Core Animation layer for that view and set a background colour, shouldn't it appear with