• 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: CAKeyframeAnimation and NSView frame property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CAKeyframeAnimation and NSView frame property


  • Subject: Re: CAKeyframeAnimation and NSView frame property
  • From: David Duncan <email@hidden>
  • Date: Wed, 10 Mar 2010 12:50:26 -0800

On Mar 10, 2010, at 12:35 PM, Mazen M. Abdel-Rahman wrote:

> I had another question about core animation.  I am trying to animate my view's frame size so that it gets smaller - and then in the same animation goes back to the same size.  I was able to get it to succesfully animate to a smaller size - but am having difficulty with getting to work using CAKeyFrameAnimation.  I tried doing it in a group - but when I try to change the alpha value nothing happens to the frame size.  I tried to follow some examples Apple had - but to no avail.  The view that I am calling this code on is layer backed (set in interface builder).


The frame is not real, it is a property derived from the position, bounds.size, transform and anchorPoint properties. If you want to animate the "frame" of a layer, then you need to animate the position and bounds.size instead.
--
David Duncan
Apple DTS Animation and Printing

_______________________________________________

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: 
 >CAKeyframeAnimation and NSView frame property (From: "Mazen M. Abdel-Rahman" <email@hidden>)

  • Prev by Date: Re: Determining bounds of a glyph
  • Next by Date: Re: Possible leak?
  • Previous by thread: CAKeyframeAnimation and NSView frame property
  • Next by thread: Accessing the contextual menu of a QTMovieView?
  • Index(es):
    • Date
    • Thread