Encode archive version as number

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18983 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2004-03-31 10:54:14 +00:00
parent 2a4a64c73e
commit a207d98243
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-03-31 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSKeyedArchiver.m: Encode archive version as a number rather
than a string.
2004-03-30 Willem Rein Oudshoorn <Wim.Oudshoorn@agilisys.com>
* Source/NSNotificationCenter.m ([-removeObserver:]): Do not raise an exception

View file

@ -745,7 +745,7 @@ static NSDictionary *makeReference(unsigned ref)
final = [NSMutableDictionary new];
[final setObject: NSStringFromClass([self class]) forKey: @"$archiver"];
[final setObject: @"100000" forKey: @"$version"];
[final setObject: [NSNumber numberWithInt: 100000] forKey: @"$version"];
[final setObject: _enc forKey: @"$top"];
[final setObject: _obj forKey: @"$objects"];
data = [NSPropertyListSerialization dataFromPropertyList: final