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]; }