Re: CALayer-hosting view and child NSView's

2010-07-01 Thread Kyle Sluder
On Jul 1, 2010, at 12:56 AM, Oleg Krupnov wrote: > Thanks Scott, > > To draw shadows around cells, I would have to draw outside the cell > view's frame, i.e. on the parent view or sibling cells, respecting the > z-order. Is this possible? Again, layer-hosting views can't have subviews. You will

Re: CALayer-hosting view and child NSView's

2010-07-01 Thread Oleg Krupnov
Thanks Scott, To draw shadows around cells, I would have to draw outside the cell view's frame, i.e. on the parent view or sibling cells, respecting the z-order. Is this possible? Also, the cells in my view can be moving over each other with an animation. When the cell view is moved using setFram

Re: CALayer-hosting view and child NSView's

2010-07-01 Thread Scott Anguish
On Jul 1, 2010, at 3:14 AM, Oleg Krupnov wrote: > Right, I want to add subviews into a layer-hosting view. > You can’t. > I want to do this, in particular, because I want the "cells" in my > custom view to drop shadows. If I implement cells like simple subviews > and use layer-backed view, I c

Re: CALayer-hosting view and child NSView's

2010-07-01 Thread Oleg Krupnov
Right, I want to add subviews into a layer-hosting view. I want to do this, in particular, because I want the "cells" in my custom view to drop shadows. If I implement cells like simple subviews and use layer-backed view, I can't seem to do it, can I? I have performed an experiment right now and

Re: CALayer-hosting view and child NSView's

2010-07-01 Thread Scott Anguish
A layer-hosting view can’t have subviews, which is what it sounds like you want to do in the second to last paragraph. Why can’t you just use layer-backed views? You get the controls, you can still do animation using the animation proxy and the other animation methods. On Jun 30, 2010, at 5:27