> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com