You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 8, 2023. It is now read-only.
Keep layers up-to-date with window contentsScale #9
CoreAnimation gives you no help at all in maintaining the correct contentsScale for layers. Anything sitting in an RBLView should have this taken care of.
Yeah… there is a delegate callback you can hook into and they also need setting manually when they are first created. Seems exactly like the kind of thing Rebel should handle for us.
I'm still a bit confused about the use case we're trying to solve. RBLView can't really be layer hosted, since it sets wantsLayer before anything has a chance to change the layer property.
Are we trying to fix sublayers of RBLView.layer, or layer-hosting subviews of RBLView?
The use case is that every time we want to use a layer for anything we need to handle contentsScale changes manually. Unlike anything on NSView which is handled automatically.
RBLView should handle that automatically for any of it's layers and sublayers/subviews.
Activity
jspahrsummers commentedon Sep 18, 2012
Does this only apply to layer hosting? I'm pretty sure backing layers are updated properly.
dannygreg commentedon Sep 18, 2012
Yes, hosting only.
jspahrsummers commentedon Sep 18, 2012
So what would that mean with
RBLView, which is meant to be layer-backed? We should update all sublayers or something?dannygreg commentedon Sep 18, 2012
Yeah… there is a delegate callback you can hook into and they also need setting manually when they are first created. Seems exactly like the kind of thing Rebel should handle for us.
jspahrsummers commentedon Sep 18, 2012
I'm still a bit confused about the use case we're trying to solve.
RBLViewcan't really be layer hosted, since it setswantsLayerbefore anything has a chance to change thelayerproperty.Are we trying to fix sublayers of
RBLView.layer, or layer-hosting subviews ofRBLView?dannygreg commentedon Sep 18, 2012
The use case is that every time we want to use a layer for anything we need to handle
contentsScalechanges manually. Unlike anything onNSViewwhich is handled automatically.RBLViewshould handle that automatically for any of it's layers and sublayers/subviews.