Re: NSView vs CALayer

Christiaan Hofman <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Sep 29, 2009, at 12:32, parfeon wrote:

>
> Hello everyone.
>
> Working on project which draws some parts of its UI with CoreAnimation
> CALayers. Currently i need create some cover view, which will appear  
> over
> whole UI (that NSView always there, coz it will response on user  
> drag n
> drop).
> I'm stumbled with such problem as shown on screen
>
> http://www.nabble.com/file/p25659257/nsviewvscalayer.png
>
> http://img44.imageshack.us/i/nsviewvscalayer.png/
>
> Transparent view overlays the view in which I used CALayers for  
> drawing.
> Dunno why, but when I change that subview (with CALayers) to any  
> other (w/o
> CoreAnimation drawing... some standard IB elements) everything looks  
> great.
>
>
> Can someone help me with this?
>
> Thanks

I really can't understand your message and in particular what your  
specific problem is. But the basic fact is that layer-hosting views  
cannot have subviews, so I guess that's where you run into.

Christiaan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.