• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to obtain target view frame (when animations are running)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to obtain target view frame (when animations are running) (From: Allan Odgaard <email@hidden>)

  • Prev by Date: How to obtain target view frame (when animations are running)
  • Next by Date: Crash while resizing window
  • Previous by thread: How to obtain target view frame (when animations are running)
  • Next by thread: Crash while resizing window
  • Index(es):
    • Date
    • Thread