Small bug corrections.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18337 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2004-01-08 12:03:33 +00:00
parent a9e055f495
commit d053e9a8ae
3 changed files with 20 additions and 211 deletions

View file

@ -319,16 +319,20 @@ 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];
}
- (id) initWithCoder: (NSCoder*)aDecoder
{
[super initWithCoder: aDecoder];
id dummy;
self = [super initWithCoder: aDecoder];
[aDecoder decodeValueOfObjCType: @encode(int) at: &_tag];
_target = [aDecoder decodeObject];
[aDecoder decodeValueOfObjCType: @encode(SEL) at: &_action];
_control_view = [aDecoder decodeObject];
// Don't decode _control_view, as this may no longe be valid.
dummy = [aDecoder decodeObject];
return self;
}