PDA

View Full Version : Animate An NSImage


mindwalkernine
2006.06.17, 10:51 PM
I want to animate an NSImage. I want to increase its size and decrease it's size in an NSView. I also want to move the image left to right.

Lets say I want a black background with a white ball moving across the NSView.

To give the illusion of movement, should I:

1. paint the background.
2. paint the ball in the new position.
3. repeat for all movements.

Is that a good way to do it, or is there a better way?

StealthyCoin
2006.06.18, 04:30 AM
http://www.oreillynet.com/pub/a/mac/2002/01/04/cocoa.html?page=2