Animation curve is always linear though specified to be S-like
Animation curve is always linear though specified to be S-like
- Subject: Animation curve is always linear though specified to be S-like
- From: "Oleg Krupnov" <email@hidden>
- Date: Wed, 20 Aug 2008 21:49:01 +0300
The problem is that my animation always seems to perform linearly, not
S-like, although I specify it to do the latter.
Here's my code:
@interface MyAnimation : NSAnimation
{
}
...
@end
@implementation MyAnimation
- (id)init
{
self = [super initWithDuration:0.1F animationCurve:NSAnimationEaseInOut];
if (self)
{
...
}
return self;
}
- (void)setCurrentProgress:(NSAnimationProgress)progress
{
[super setCurrentProgress:progress];
NSLog( [NSString stringWithFormat:@"%f", progress]);
}
@end
I get the following log:
0.166700
0.333450
0.499950
0.666610
0.833090
0.999710
1.000000
It follows that the animation is linear (the increment is constant)
What am I doing wrong?
Thanks
_______________________________________________
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