Re: Animation curve is always linear though specified to be S-like
Re: Animation curve is always linear though specified to be S-like
- Subject: Re: Animation curve is always linear though specified to be S-like
- From: "Oleg Krupnov" <email@hidden>
- Date: Wed, 17 Sep 2008 07:56:18 +0300
I have got no response, but still I wasn't able to fix this problem. Any ideas?
On Wed, Aug 20, 2008 at 9:49 PM, Oleg Krupnov <email@hidden> wrote:
> 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