Animate An NSImage

Post: #1
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?
Quote this message in a reply
Posts: 67
Joined: 2006.06
Post: #2

The machine does not run without the coin.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  NSImage leaking? Cirdan 5 6,091 Nov 16, 2009 12:02 PM
Last Post: SethWillits
  Sending an NSImage on a Network mindwalkernine 1 4,405 Aug 9, 2006 04:23 AM
Last Post: djork
  NSImage and NSView problems Joseph Duchesne 1 5,446 Aug 19, 2005 07:36 AM
Last Post: unknown
  Faking a Z Coordinate With NSImage Nick 2 4,250 Jun 11, 2005 05:38 PM
Last Post: Nick
  Drawing: Transparent Pixels and NSImage elhochme 4 8,192 Jun 17, 2003 06:39 PM
Last Post: elhochme