bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Archiving NSImage


From: Ludovic Marcotte
Subject: Archiving NSImage
Date: Tue, 28 Aug 2001 11:49:35 -0400 (EDT)

Hi,

I'm currently trying to archive NSImage object like that:

- (void) encodeWithCoder: (NSCoder *) theCoder
{
  ...
  [theCoder encodeObject: anImage ];
}

where anImage is an object of type NSImage.

When I call:  [NSArchiver archiveRootObject: ...]

I get:

Aug 28 15:35:59 GNUMail[16706] Tiff Error (TIFFSetField) TiffData: Unknown
pseudo-tag 65537
Aug 28 15:35:59 GNUMail[16706] Tiff Error (TIFFSetField) TiffData: Unknown
pseudo-tag 65537

After, when I try to unarchive everything, I get the following exception:

NSGenericExpression: subclass NSUnarchiver should override
encodeValueOfObjCType:at:

Is this a bug in the NSImage's archiving method (or unarchiving). Is it
the best way of archiving NSImage?

Thanks,
                Ludovic

-- 
Live as if you were to die tomorrow.
Learn as if you were to live forever.
 - Gandhi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]