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

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

  • Follow-Ups:
    • Re: Animation curve is always linear though specified to be S-like
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Swapping IB-created views and keeping IBOutlets hooked up
  • Next by Date: Re: Animation curve is always linear though specified to be S-like
  • Previous by thread: Re: NSMutableString question
  • Next by thread: Re: Animation curve is always linear though specified to be S-like
  • Index(es):
    • Date
    • Thread