Re: Animating a view along a path

2008-08-15 Thread Bill Dudney
Hi Chilton, There are a couple of examples of doing just that in the CA book (disclaimer: I'm the author) showing how to animate views with keyframe animations. http://www.pragprog.com/titles/bdcora The basic idea is to set the path for the keyframe animation and then put that animation

Re: Animating a view along a path

2008-08-15 Thread Ron Lue-Sang
Are you able to just use CoreAnimation directly? Like, CAKeyframeAnimation? I've never used it, but the header seems to imply it'd apply to the problem you're trying to solve. On Aug 15, 2008, at 10:36 AM, douglas welton wrote: Chilton, Ultimately a "curve" is just a lot of straight line,

Re: Animating a view along a path

2008-08-15 Thread douglas welton
Chilton, Ultimately a "curve" is just a lot of straight line, really, really, really close to each other ; ^} Check out the "Animation Programming Guide for Cocoa" to see how you can link multiple animations together. Remember, you can also vary the rate of animation as well as the anim

Re: Animating a view along a path

2008-08-15 Thread Chilton Webb
Hi Douglas! Thanks for writing. I realize this isn't something people do too much of, so any help would be greatly appreciated. On Aug 15, 2008, at 9:45 AM, douglas welton wrote: How complex is your path? if it's linear, why not just tell the view's animator to do it? That's the trick. I'm

Re: Animating a view along a path

2008-08-15 Thread douglas welton
Chilton, How complex is your path? if it's linear, why not just tell the view's animator to do it? If it's more complex, you might want to check out NSAnimation and NSViewAnimation (particularly the progress marks and delegates in these two classes) Have you taken a look at the CocoaSl