NSImageView animation not working
NSImageView animation not working
- Subject: NSImageView animation not working
- From: "Ronald Anderson" <email@hidden>
- Date: Fri, 12 Dec 2003 15:56:31 -0500 (EST)
- Organization: AOL
Does anybody know whats going on with NSImage and animation?
I implemented a custom subclass of NSImage that allowed control of the
properties that control animation from animated GIFs. Adding a timer
allowed the object to notify receivers that the image "current frame" had
changed and should be "redrawn". This all worked fine on Jaguar.
Now that Panther has added animation support to NSImageView, I have not
been able to get animation to work at all.
When the "drawRect:rect" method is called in the NSImage, the current
frame of the image is set correctly, but the first frame is always the
one being drawn.
There is no discussion or documentation from Apple that describes what is
going on under the covers. It just doesn't make sense. Has anyone else
had trouble with this?
When creating a blank Cocoa app from XCode, creating a window with an
animated GIF NSImageView, and then running the app in the Test Interface
feature of Interface Builder, I get no animation again. Although the
image drawn seems to be a semi-random frame which stays static. The
"animates" attribute does not seem to help.
Ron Anderson
America Online
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.