* EOAccess/EOAttribute.m (encodeIntoPropertyList:): Encode

numeric values as stings for WO45 EOModel format compatibility.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20202 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2004-10-06 22:45:21 +00:00
parent 79fee856cd
commit f4fd4ec9a6
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2004-10-07 David Ayers <d.ayers@inode.at>
* EOAccess/EOAttribute.m (encodeIntoPropertyList:): Encode numeric
values as stings for WO45 EOModel format compatibility.
2004-09-28 David Ayers <d.ayers@inode.at>
* EOAccess/EOEntity.m ([EOEntityClassDescription

View file

@ -353,17 +353,18 @@ static Class NSCalendarDateClass;
if (_writeFormat)
[propertyList setObject: _writeFormat forKey: @"writeFormat"];
if (_width > 0)
[propertyList setObject: [NSNumber numberWithUnsignedInt: _width]
[propertyList setObject: [NSString stringWithFormat:@"%u", _width]
forKey: @"width"];
if (_precision > 0)
[propertyList setObject: [NSNumber numberWithUnsignedShort: _precision]
[propertyList setObject: [NSString stringWithFormat:@"%hu", _precision]
forKey: @"precision"];
if (_scale != 0)
[propertyList setObject: [NSNumber numberWithShort: _scale]
[propertyList setObject: [NSString stringWithFormat:@"%hí", _scale]
forKey: @"scale"];
if (_parameterDirection != 0)
[propertyList setObject: [NSNumber numberWithInt: _parameterDirection]
[propertyList setObject: [NSString stringWithFormat:@"%d",
(int)_parameterDirection]
forKey: @"parameterDirection"];
if (_userInfo)