I am having problems with animated images in a NSTableView (specifically an animated GIF). After some experimentation, I have determined that the problem seems to be that the view doesn't update itself after the next frame in the animation loads. I determined this after I noticed that the images did change any time I resized the table's window. As a workaround, I created a NSTimer that fires off a - setNeedsDisplayInRect to the table view every .05 seconds.

This works, but has a couple of problems:

1. It seems like invalidating the entire table column might affect performance if I get a lot of rows.

2. It doesn't work with Cocoa bindings. From what I've been able to figure out, every time I call setNeedsDisplayInRect, the binding calls the model's image getter method, and this seems to reset the animation to the first frame.

Does anybody have suggestions on a better solution?

--
Dave Carrigan
[EMAIL PROTECTED]
Seattle, WA, USA

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to