mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 00:31:00 +00:00
Backports from trunk
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_stable_20070311@25792 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3352a25907
commit
65fa5805e2
7 changed files with 891 additions and 786 deletions
|
@ -911,6 +911,10 @@ static NSNotificationCenter *nc;
|
|||
{
|
||||
[aCoder encodeObject: [self cell] forKey: @"NSCell"];
|
||||
[aCoder encodeBool: [self isEnabled] forKey: @"NSEnabled"];
|
||||
if (_tag)
|
||||
{
|
||||
[aCoder encodeInt: [self tag] forKey: @"NSTag"];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -930,12 +934,17 @@ static NSNotificationCenter *nc;
|
|||
|
||||
if (cell != nil)
|
||||
{
|
||||
[self setCell: cell];
|
||||
}
|
||||
[self setCell: cell];
|
||||
}
|
||||
if ([aDecoder containsValueForKey: @"NSEnabled"])
|
||||
{
|
||||
[self setEnabled: [aDecoder decodeBoolForKey: @"NSEnabled"]];
|
||||
}
|
||||
[self setEnabled: [aDecoder decodeBoolForKey: @"NSEnabled"]];
|
||||
}
|
||||
if ([aDecoder containsValueForKey: @"NSTag"])
|
||||
{
|
||||
int tag = [aDecoder decodeIntForKey: @"NSTag"];
|
||||
[self setTag: tag];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue