Following situation:
I have an instance of my NSObject
sublcassed object. One of it's properties is a NSImage
. After instanciating the object I convert it with NSKeyedArchiver
to data, send it over the network, unarchive it with NSKeyedUnarchiver
and display the image in a NSImageView
(setAnimates: YES). Until here there are no problems. The image can be displayed on the other machine. Now the problem:
If I send an animated gif, it won't animate. I don't know why... Any ideas why the animation stays away? Thank you!
UPDATE
If I open the animated image before archiving it the NSImageView
animates it. The problem is maybe the archiving...
UPDATE 2
I tested the whole workflow without sending the data over the network, just archiving and unarchiving it again. As I suspected it is a problem with NSKeyed(Un)Archiver.
The animation gets lost. But what to do to prevent this?