Skip navigation.
 
mlRe: NSImageView setAnimates:YES... PLEASE?
FROM : John Turnipseed
DATE : Tue May 01 22:42:59 2007

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_removed>    |  we come in; we're computer professionals.
<email_removed>          |  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_removed>
> Instant Interactive(tm)  http://www.instantinteractive.com
>

Related mailsAuthorDate
mlNSImageView setAnimates:YES... PLEASE? John Turnipseed May 1, 02:18
mlRe: NSImageView setAnimates:YES... PLEASE? Ricky Sharp May 1, 03:01
mlRe: NSImageView setAnimates:YES... PLEASE? John Turnipseed May 1, 22:42
mlRe: NSImageView setAnimates:YES... PLEASE? Ricky Sharp May 2, 00:50
mlRe: NSImageView setAnimates:YES... PLEASE? John Turnipseed May 3, 03:12
ml[SOLVED] NSImageView setAnimates:YES... PLEASE? John Turnipseed May 3, 20:52