More keyed decoding. Button cell now doesn't fill interior.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18564 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2004-02-08 20:33:07 +00:00
parent 706213590f
commit e30172881a
7 changed files with 193 additions and 67 deletions

View file

@ -78,11 +78,20 @@
{
}
- (id) initWithCoder: (NSCoder*)aCoder
- (id) initWithCoder: (NSCoder*)aDecoder
{
[aCoder decodeValueOfObjCType: @encode(id) at: &_src];
[aCoder decodeValueOfObjCType: @encode(id) at: &_dst];
[aCoder decodeValueOfObjCType: @encode(id) at: &_tag];
if ([aDecoder allowsKeyedCoding])
{
ASSIGN(_src, [aDecoder decodeObjectForKey: @"NSSource"]);
ASSIGN(_dst, [aDecoder decodeObjectForKey: @"NSDestination"]);
ASSIGN(_tag, [aDecoder decodeObjectForKey: @"NSLabel"]);
}
else
{
[aDecoder decodeValueOfObjCType: @encode(id) at: &_src];
[aDecoder decodeValueOfObjCType: @encode(id) at: &_dst];
[aDecoder decodeValueOfObjCType: @encode(id) at: &_tag];
}
return self;
}