Re: How to obtain target view frame (when animations are running)
Re: How to obtain target view frame (when animations are running)
- Subject: Re: How to obtain target view frame (when animations are running)
- From: Allan Odgaard <email@hidden>
- Date: Wed, 24 Sep 2014 15:41:37 +0200
On 24 Sep 2014, at 14:29, Allan Odgaard wrote:
I have implicit animations enabled which means that when my NSView’s
-layout or -resizeSubviewsWithOldSize: methods are called, the frame
property of the view reflects the animation’s current value, which
means I place subviews in wrong locations […]
My bad, I had disabled autoresizesSubviews. If I leave it alone, I get
-resizeSubviewsWithOldSize: for each step of the animation (so my layout
will reflect the current size).
Though I would still be interested in learning how I can obtain the
target frame (e.g. for custom hit-testing).
_______________________________________________
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