• 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: Understanding layer-backed views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Understanding layer-backed views


  • Subject: Re: Understanding layer-backed views
  • From: Scott Anguish <email@hidden>
  • Date: Wed, 22 Jun 2011 03:02:19 -0400

> Yep, I'm aware of the setWantsLayer/setLayer order making a difference.
>
> In my case I want a layer-hosting view, not a layer-backed view.
>
> However, my question isn't really about that, but about what is done when you check the box next to the layer in Interface Builder, in the 'setWantsLayer' panel. Does this provide layer backing or layer hosting? My thoughts were that is provides layer hosting, but I'm not 100% sure. Proceeding on the basis that this is the case, it seems to work.
>

layer-backed.




>
>> Again this is not in line with my expectations, which is that the frame of a sublayer is expressed in the coordinate system of its superlayer, not the underlying window.
>
> I found the cause of this issue, which was that in my layer delegate, I was not saving, setting and restoring the context passed to drawLayer:inContext:. I was assuming that the context was set, but having found a code snippet in the docs that indicated it wasn't, I added these calls and my graphics are drawing in the right place now.
>

great!_______________________________________________

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

References: 
 >Understanding layer-backed views (From: Graham Cox <email@hidden>)
 >Re: Understanding layer-backed views (From: Scott Anguish <email@hidden>)
 >Re: Understanding layer-backed views (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Understanding layer-backed views
  • Next by Date: Re: Synthesised properties and additional actions
  • Previous by thread: Re: Understanding layer-backed views
  • Next by thread: Help Book question
  • Index(es):
    • Date
    • Thread