Re: Disable implicit animations in layer backed NSScrollViews?
Re: Disable implicit animations in layer backed NSScrollViews?
- Subject: Re: Disable implicit animations in layer backed NSScrollViews?
- From: Kyle Sluder <email@hidden>
- Date: Mon, 20 Jun 2011 16:55:13 -0700
On Mon, Jun 20, 2011 at 3:52 PM, Daniel Waylonis <email@hidden> wrote:
> When I resize, the contents "jump" in the table view. I believe it is because there's an implicit animation to move the bounds and/or position. Or maybe something in the clip? I'd also not like it to fade in if I toggle between layer-backed and not.
Make sure that in your implementation of -resizeWithOldSuperviewSize:
that you call super's implementation. This bit us for a long time, but
apparently that's one of the places where the layer glue fixes up the
layer's geometry to match the AppKit geometry. You need to do this
even if you have custom logic in this method that will completely
nullify what super did. You may need to wrap the call to super in a
CATransaction with +setDisableActions:YES.
rdar://problem/8659667
--Kyle Sluder
_______________________________________________
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