Re: CALayers Lost After Switching Window's ContentView
Re: CALayers Lost After Switching Window's ContentView
- Subject: Re: CALayers Lost After Switching Window's ContentView
- From: Bridger Maxwell <email@hidden>
- Date: Mon, 16 Feb 2009 15:37:51 -0700
>
>
> You must
>
> - create a layer
> - set it as the layer of the view
> - then enable setWantsLayer:
>
Woah, I had no idea I was doing it wrong for so long. :P Inserting the
following code is all I have to do, right?
[self setLayer:[CALayer layer]];
[self setWantsLayer:YES];
It is good to know the difference between a layer-backed and layer-hosting
views. I need to read the Core Animation documentation again. It was one of
the first frameworks I learned, so when I first read it most of it went over
my head.
Thank You,
Bridger Maxwell
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden