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: "E. Wing" <email@hidden>
- Date: Mon, 16 Feb 2009 11:50:06 -0800
I think I ran into this problem about 7 months ago. We ended up filing a DTS
incident for an explanation and some work-arounds.
If memory serves, the problem was that AppKit was too aggressive about
freeing the layer-backing of the NSViews it owns. My application was a
mixure of both NSViews and CALayers. I think I was told that Apple didn't
like me mixing the two to the aggressive degree I was doing.
I was told that for every NSView I used, I should subclass setLayer which
gives you a chance to intervene in the setup/tear down process. But I forgot
most of the details.
I think I also found that enterFullscreenMode:withOptions: was doing
something different and I didn't lose my layers when toggling. But not
everybody can use this method due to its current limitations.
-Eric
_______________________________________________
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