mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:30:38 +00:00
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:
parent
69707e4825
commit
45b6e203cd
7 changed files with 118 additions and 49 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue