How to obtain target view frame (when animations are running)
How to obtain target view frame (when animations are running)
- Subject: How to obtain target view frame (when animations are running)
- From: Allan Odgaard <email@hidden>
- Date: Wed, 24 Sep 2014 14:29:17 +0200
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.
How should I obtain the actual (target) frame?
Likewise, is there any way to make it so that hit-testing is done on the
target frames? I.e. if I move an NSButton (animated) to targetRect then
I want clicks in targetRect to trigger the button (which initially
seemed to be the case, but I think it broke when I started to also
change frame size, and not just the location).
_______________________________________________
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