mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:00:47 +00:00
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:
parent
706213590f
commit
e30172881a
7 changed files with 193 additions and 67 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue