• 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 08:36:36 +0300

It has just dawned at me that I should use [self currentValue] instead
of [self currentProgress] as the argument for the function that alters
the position during animation, i.e.

NSLog( [NSString stringWithFormat:@"%f", [self currentValue]]);

The "progress" indeed grows linearly, at regular time intervals, and
the "value" is calculated S-like

Thanks anyway!

On Wed, Sep 17, 2008 at 8:31 AM, Graham Cox <email@hidden> wrote:
>
> On 17 Sep 2008, at 3:04 pm, Graham Cox wrote:
>
>> Does it? The likelihood is that the animation is performed using a regular
>> interval, but the position is modified according to the S-curve function.
>> With only 7 steps of animation, it's probable that you are just not noticing
>> the easing in and out, which doesn't deviate that much from the linear.
>
>
> Actually, looking at NSAnimation this is probably wrong, since this is how
> you get notified of where you should be, it should include the effects of
> the curve. Do try a longer time though and see if it makes the curve more
> obvious, 7 samples may be too few to see it.
>
> Graham
>
_______________________________________________

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

References: 
 >Re: Animation curve is always linear though specified to be S-like (From: "Oleg Krupnov" <email@hidden>)
 >Re: Animation curve is always linear though specified to be S-like (From: Graham Cox <email@hidden>)
 >Re: Animation curve is always linear though specified to be S-like (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Animation curve is always linear though specified to be S-like
  • Next by Date: NSApplication subclass crashes on 10.3 with Xcode 3
  • Previous by thread: Re: Animation curve is always linear though specified to be S-like
  • Next by thread: NSApplication subclass crashes on 10.3 with Xcode 3
  • Index(es):
    • Date
    • Thread