Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Choppy Core Animation



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.