• 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: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?


  • Subject: Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?
  • From: Matt Long <email@hidden>
  • Date: Fri, 16 Jan 2009 10:54:17 -0700

Because you can't. These are the only properties you can animate:

http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimProps.html

-Matt


On Jan 16, 2009, at 10:46 AM, Adam Venturella wrote:

Basically, I was thinking: Hey, why can't I use CABasicAnimation  as a
means to animate just a value, not tied to a layer or a view, eg:

If my CABasicAnimation duration is 1 second, and it's fromValue = 0
and it's toValue = 1 and say the interval was 100 milliseconds
my value should increment by 0.10 every 100 milliseconds.
So at 5 seconds my value should be 0.50

Now I could use an NSTimer to do this same thing I suppose, but I
figured since Core Animation was already setup to handle things like
this, why not use that.

So my question is, is this even possible?  Should I stop trying with
this approach?   Not looking for a how do I do this, more of a yes or
no answer, I would like to figure it out on my own.  Just want to make
sure I am not barking up the wrong tree to begin with.
_______________________________________________

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: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?
      • From: "Adam Venturella" <email@hidden>
References: 
 >CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress? (From: "Adam Venturella" <email@hidden>)

  • Prev by Date: Re: Displaying multiple core data relationships in NSOutlineView
  • Next by Date: How to manage a separate data file while saving an NSPersistentDocument or during schema migration
  • Previous by thread: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?
  • Next by thread: Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?
  • Index(es):
    • Date
    • Thread