use new wrappers

This commit is contained in:
Riccardo Mottola 2021-01-10 18:36:26 +01:00
parent 5238f668c6
commit 4e6bb6954b

View file

@ -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.