• 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
Re: NSImageView setAnimates:YES... PLEASE?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageView setAnimates:YES... PLEASE?


  • Subject: Re: NSImageView setAnimates:YES... PLEASE?
  • From: John Turnipseed <email@hidden>
  • Date: Tue, 1 May 2007 15:42:59 -0500


That's close to what I did as a sanity check. I created a window in a NIB with an image view set to animate, built and ran the application and then dragged an animated gif image file onto the image. It still didn't animate. Just displayed the first frame.


I'm actually trying to display an animated GIF in a programmatically created NSWindow and NSImageView, no NIB files directly involved at all.

I wouldn't think it matters, but I'm building/running on a G5 tower on 10.4.9 and building using the 10.4 Universal SDK. Haven't tried it on my intel machine yet.

-=- John
________________________________________________________________________ _____
John Turnipseed | "The most likely way for the world to be destroyed,
Mac Driver/Programmer | most experts agree, is by accident. That's where
email@hidden | we come in; we're computer professionals.
email@hidden | We cause accidents." -- Nathaniel Borenstein




On Apr 30, 2007, at 08:01:15 PM, Ricky Sharp wrote:


On Apr 30, 2007, at 7:18 PM, John Turnipseed wrote:


What's up with NSImageView's -(void)setAnimates:(BOOL)flag selector? Calling it doesn't seem to have any effect when it's loaded with an animated GIF image. It never animates. Setting the flag in IB or calling the selector at runtime seems to make no difference.


Is this just a bug or am I missing something? I've had to roll my own subclass that iterates through the bitmap representations of the loaded image on a timer. Seems to work, but wondering if this is a known bug or if I should put it in radar.

So if this has been asked and answered, my apologies, but I haven't found an answer anywhere. Everything I found googling seems to indicate it should just work... but it doesn't for me.

While the animation appears to not work when testing the interface in IB, I got an animated GIF working just fine when running a small test app (10.4.9). Didn't do any coding; just added the GIF to my project, dragged in to an image view and set the animates flag in IB.


___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: NSImageView setAnimates:YES... PLEASE?
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: NSTemporaryDirectory() and security
  • Next by Date: Re: NSTemporaryDirectory() and security
  • Previous by thread: problem blitting to fullscreen window
  • Next by thread: Re: NSImageView setAnimates:YES... PLEASE?
  • Index(es):
    • Date
    • Thread