mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 06:28:54 +00:00
(-encodeWithCoder:): Encode nil instead of the control view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18454 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0c19b789bb
commit
a641743a5c
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-01-22 13:06 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSActionCell.m (-encodeWithCoder:): Encode nil instead of
|
||||
the control view.
|
||||
|
||||
2004-01-22 13:04 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Headers/Additions/GNUstepGUI/GSDrawFunctions.h: Add missing
|
||||
|
|
|
@ -319,8 +319,8 @@ static Class controlClass;
|
|||
[aCoder encodeValueOfObjCType: @encode(int) at: &_tag];
|
||||
[aCoder encodeConditionalObject: _target];
|
||||
[aCoder encodeValueOfObjCType: @encode(SEL) at: &_action];
|
||||
// This is only encoded for backward compatibility and wont be decoded.
|
||||
[aCoder encodeConditionalObject: _control_view];
|
||||
// This is only encoded for backward compatibility and won't be decoded.
|
||||
[aCoder encodeConditionalObject: nil];
|
||||
}
|
||||
|
||||
- (id) initWithCoder: (NSCoder*)aDecoder
|
||||
|
@ -331,7 +331,7 @@ static Class controlClass;
|
|||
[aDecoder decodeValueOfObjCType: @encode(int) at: &_tag];
|
||||
_target = [aDecoder decodeObject];
|
||||
[aDecoder decodeValueOfObjCType: @encode(SEL) at: &_action];
|
||||
// Don't decode _control_view, as this may no longe be valid.
|
||||
// Don't decode _control_view, as this may no longer be valid.
|
||||
dummy = [aDecoder decodeObject];
|
||||
return self;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue