• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CALayers Lost After Switching Window's ContentView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: CALayers Lost After Switching Window's ContentView
      • From: David Duncan <email@hidden>
References: 
 >CALayers Lost After Switching Window's ContentView (From: Bridger Maxwell <email@hidden>)

  • Prev by Date: Re: NSTimer: Test Results
  • Next by Date: Official keycode table?
  • Previous by thread: Re: CALayers Lost After Switching Window's ContentView
  • Next by thread: Re: CALayers Lost After Switching Window's ContentView
  • Index(es):
    • Date
    • Thread