• 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
Animation curve is always linear though specified to be S-like
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Tiger Compatible OpenGL Screenshot Code
  • Next by Date: Re: NSWindowController, owner, "primary window"...
  • Previous by thread: Re: NSWindowController, owner, "primary window"...
  • Next by thread: Parse form values from HTTP POST
  • Index(es):
    • Date
    • Thread