mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 19:01:15 +00:00
use new wrappers
This commit is contained in:
parent
5238f668c6
commit
4e6bb6954b
1 changed files with 2 additions and 2 deletions
|
@ -386,7 +386,7 @@ static Class controlClass;
|
|||
}
|
||||
else
|
||||
{
|
||||
[aCoder encodeValueOfObjCType: @encode(NSInteger) at: &_tag];
|
||||
[aCoder encodeInteger: _tag];
|
||||
[aCoder encodeConditionalObject: _target];
|
||||
[aCoder encodeValueOfObjCType: @encode(SEL) at: &_action];
|
||||
// This is only encoded for backward compatibility and won't be decoded.
|
||||
|
@ -420,7 +420,7 @@ static Class controlClass;
|
|||
{
|
||||
id dummy;
|
||||
|
||||
[aDecoder decodeValueOfObjCType: @encode(NSInteger) at: &_tag];
|
||||
_tag = [aDecoder decodeInteger];
|
||||
_target = [aDecoder decodeObject];
|
||||
[aDecoder decodeValueOfObjCType: @encode(SEL) at: &_action];
|
||||
// Don't decode _control_view, as this may no longer be valid.
|
||||
|
|
Loading…
Reference in a new issue