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 PROTECTED]> 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 (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to