RE: NSImageView and animated GIFs
RE: NSImageView and animated GIFs
- Subject: RE: NSImageView and animated GIFs
- From: Lance Drake <email@hidden>
- Date: Mon, 31 May 2004 22:20:22 -0600
You must disable the autoscaling feature of the NSImageView for the
animation playback to function. After you've done that, no extra
programming required. It works like a charm!
Hi Michael,
Thanks so much for your clarification of this point. The same problem
was an obstacle for me. My 'solution' was to move over to NSMovieView
and do as instructed in TN2018... However... there's an interesting
anomaly when taking that route which occurs as the rendering of the
transparent background ends up appearing somewhat darker than the
surrounding image area over which the animated GIF is drawn. (this was
submitted as Apple DevBug # 3668795).
--------------
1) Load an anim-gif into NSMovie - as per TN2018 - insert into
NSMovieView
(An example is included in attachment 'AnimGifExample.sit)
2) Add NSMovie subView to NSWindow contentView on top of a JPEG image
drawn into same window
3) Observe how the area in the anim-gif rect which should be
transparent is darker than it should be.
4) Compare the attached comparative screen shots where the same
anim-gif has been rendered by Safari over the same JPEG and observe no
such effect occurs.
--------------
I look forward to trying out your approach and appreciate your sharing
the workaround strategy with the rest of us. Meanwhile, I am lovin'
working with Cocoa and XCode - and, while I've got the forum's talking
stick, also would like to recommend the new SE version of Aaron
Hillegasse's "Cocoa Programming For MacOSX" Together with the
Anguish/Buck/Yachtman work and Apple's online docs, it's a really great
resource.
Best Wishes,
Lance Drake
_______________________________________________
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.