• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Animated images in a NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Animated images in a NSTableView


  • Subject: Animated images in a NSTableView
  • From: Dave Carrigan <email@hidden>
  • Date: Thu, 4 Sep 2008 20:13:25 -0700

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@hidden
Seattle, WA, USA

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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Prev by Date: Re: string convertion: converting getter name to setter
  • Next by Date: Re: NSPanel: resigning key focus?
  • Previous by thread: Re: string convertion: converting getter name to setter
  • Next by thread: [MEET] Minnesota CocoaHeads 9/11/08
  • Index(es):
    • Date
    • Thread