Re: Core Animation rendering problem

2009-07-23 Thread Randall Meadows
On Jul 23, 2009, at 1:15 AM, David Duncan wrote: On Jul 22, 2009, at 10:05 PM, Randall Meadows wrote: Any idea why the drawing is screwing up for the 2nd animation? Are the 2 different methods of animating messing up each other somehow (even though I've removed the 1st animation)? This i

Re: Core Animation rendering problem

2009-07-23 Thread John C. Randolph
On Jul 22, 2009, at 10:05 PM, Randall Meadows wrote: newBounds.origin.x -= delta/2.0; newBounds.size.width += delta; newBounds.origin.y -= delta/2.0; newBounds.size.height += delta; BTW, you might want to look up the NSInsetRect() function. -jcr ___

Re: Core Animation rendering problem

2009-07-23 Thread David Duncan
On Jul 22, 2009, at 10:05 PM, Randall Meadows wrote: Any idea why the drawing is screwing up for the 2nd animation? Are the 2 different methods of animating messing up each other somehow (even though I've removed the 1st animation)? This is working as expected (for the default case at lea

Core Animation rendering problem

2009-07-22 Thread Randall Meadows
Probably not the best subject line, but best I could come up with... I an animating a ball across the screen, using this code: CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"position"]; animation.duration = duration; animation.delegate = self; animation.timingFunction