• 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: 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

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

  • Prev by Date: Re: Using NSRulerView with a non-text view
  • Next by Date: Bindings: Why Doesn't Key Value validation Update The UI?
  • 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