mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 16:46:23 +00:00
Correction for GSNibCompatibility. Added coding to classes for keyed archiving.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23225 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dc4a427c47
commit
84d0296b74
11 changed files with 227 additions and 91 deletions
|
@ -948,7 +948,14 @@ static BOOL supports_lzw_compression = NO;
|
|||
NSData *data = [self TIFFRepresentation];
|
||||
|
||||
[super encodeWithCoder: aCoder];
|
||||
[aCoder encodeObject: data];
|
||||
if([aCoder allowsKeyedCoding])
|
||||
{
|
||||
[aCoder encodeObject: data forKey: @"NSTIFFRepresentation"];
|
||||
}
|
||||
else
|
||||
{
|
||||
[aCoder encodeObject: data];
|
||||
}
|
||||
}
|
||||
|
||||
- (id) initWithCoder: (NSCoder*)aDecoder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue