Hi Nate,
Glad it works!
You are correct that when you want to set up you own layer hierarchy
its best to leave that for awakeFromNib instead of setting the check
box. When you check that a view wants a layer in IB and then replace
it its just wasting creating that layer and such. Also I ha
> If you don't have layer backing turned on in the nib
> file the view
> loading machinery turns off layer backing after
> initWithFrame: is
> called.
Ah, that explains it!
>From my understanding (and the docs don't elaborate on
this much at all), I *don't* want to do that, since I
need to pr
Hi Nathan,
If you move your layer code into awakeFromNib you should have much
better results.
If you don't have layer backing turned on in the nib file the view
loading machinery turns off layer backing after initWithFrame: is
called.
HTH,
-bd-
http://bill.dudney.net/roller/objc
On F
I provide an initWithFrame: for my NSView subclass,
and as it is a stand-in for a Custom View in IB the
method is called. It does initialize all my instance
variables as expected.
However, when I try to turn my view into a
layer-hosting view with:
CALayer* rootLayer = [CALayer layer];