From c6eb6061aed44a014dda495af863a405eff305dc Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Mon, 27 Dec 2010 14:20:41 +0000 Subject: [PATCH] Updated encoding/decoding of enums to work across compiled versions git-svn-id: svn+ssh://svn.gna.org/svn/gnustep@31789 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ NSAttributeDescription.m | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 641178f..41995fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-12-27 Nicola Pero + + * NSAttributeDescription.m ([-initWithCoder:], + [-encodeWithCoder:]): Explicitly encode and decode NSAttributeType + as 'int' to work across compiler versions. + 2007-12-13 Nikolaus Schaller * made compile on MacOS X and mySTEP diff --git a/NSAttributeDescription.m b/NSAttributeDescription.m index 8e5b661..46a7743 100644 --- a/NSAttributeDescription.m +++ b/NSAttributeDescription.m @@ -85,8 +85,7 @@ } else { - [coder decodeValueOfObjCType: @encode(NSAttributeType) - at: &_attributeType]; + [coder decodeValueOfObjCType: @encode(int) at: &_attributeType]; // ASSIGN(_attributeValueClassName, [coder decodeObject]); ASSIGN(_defaultValue, [coder decodeObject]); } @@ -108,8 +107,7 @@ } else { - [coder encodeValueOfObjCType: @encode(NSAttributeType) - at: &_attributeType]; + [coder encodeValueOfObjCType: @encode(int) at: &_attributeType]; // [coder encodeObject: _attributeValueClassName]; [coder encodeObject: _defaultValue]; }