• 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: Choppy Core Animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Choppy Core Animation


  • Subject: Re: Choppy Core Animation
  • From: Scott Anguish <email@hidden>
  • Date: Sat, 3 Nov 2007 01:54:04 -0400

this is entirely unnecessary.


simply using the frame method should work through the animator proxy.



On Nov 2, 2007, at 9:34 PM, Hasani Hunter wrote:

I added the following code:

CALayer *viewLayer = [ view layer ];

// create a keyframe animation..
CAKeyframeAnimation *keyAnimation = [ CAKeyframeAnimation animation ];

// set the keypath
[ keyAnimation setKeyPath:@"frame" ];

// create an array of values..
NSArray *animationArray = [ NSArray arrayWithObjects:
				[ NSValue valueWithRect:[ view frame ] ],
				[ NSValue valueWithRect:frame ],nil ];

[ keyAnimation setValues:animationArray ];

[ viewLayer addAnimation:keyAnimation forKey:@"frame" ];

[ [ view animator ] setFrame:frame ];

I'm still not convinced that this is right, but the animation is a bit smoother..

On Nov 2, 2007, at 5:05 AM, Scott Anguish wrote:

OK, one comment off the top.
_______________________________________________

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: 
 >Choppy Core Animation (From: Hasani Hunter <email@hidden>)
 >Re: Choppy Core Animation (From: Scott Anguish <email@hidden>)
 >Re: Choppy Core Animation (From: Hasani Hunter <email@hidden>)

  • Prev by Date: Setting up bindings using GC and properties
  • Next by Date: Re: Best practice for hidden keyboard shortcuts
  • Previous by thread: Re: Choppy Core Animation
  • Next by thread: [Leopard] awakeFromNib not responding...
  • Index(es):
    • Date
    • Thread