mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 14:30:38 +00:00
Explicitly encode/decode enumerated types as 'int' which is what all
the existing archives use (even if it is incorrect as in many cases the types are actually 'unsigned int') git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31785 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
74c604cbb0
commit
b854f2da8a
12 changed files with 59 additions and 36 deletions
|
@ -210,7 +210,7 @@
|
|||
[aCoder encodeObject:_label];
|
||||
[aCoder encodeObject:_view];
|
||||
[aCoder encodeObject:_color];
|
||||
[aCoder encodeValueOfObjCType: @encode(NSTabState) at: &_state];
|
||||
[aCoder encodeValueOfObjCType: @encode(int) at: &_state];
|
||||
[aCoder encodeObject:_first_responder];
|
||||
[aCoder encodeObject:_tabview];
|
||||
}
|
||||
|
@ -234,7 +234,7 @@
|
|||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_label];
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_view];
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_color];
|
||||
[aDecoder decodeValueOfObjCType: @encode(NSTabState) at:&_state];
|
||||
[aDecoder decodeValueOfObjCType: @encode(int) at:&_state];
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_first_responder];
|
||||
AUTORELEASE(_first_responder);
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_tabview];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue