Some more keyed decoding.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20216 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2004-10-10 22:36:02 +00:00
parent 69707e4825
commit 45b6e203cd
7 changed files with 118 additions and 49 deletions

View file

@ -947,7 +947,14 @@ static BOOL supports_lzw_compression = NO;
NSData *data;
self = [super initWithCoder: aDecoder];
data = [aDecoder decodeObject];
if ([aDecoder allowsKeyedCoding])
{
data = [aDecoder decodeObjectForKey: @"NSTIFFRepresentation"];
}
else
{
data = [aDecoder decodeObject];
}
return [self initWithData: data];
}