Hi all,
maybe there is a bug in saving NSNumber
here is piece of code
//---------------------------------------
NSMutableDictionary *dcit = [NSMutableDictionary dictionary];
[dcit setObject:[NSNumber numberWithBool :YES] forKey:@"BoolYES"];
[dcit setObject:[NSNumber numberWithBool :NO] forKey:@"BoolNO"];
[dcit setObject:[NSNumber numberWithInt :10] forKey:@"IntPlus"];
[dcit setObject:[NSNumber numberWithInt :-10] forKey:@"IntMinus"];
[dcit setObject:[NSNumber numberWithFloat :25.5] forKey:@"RealPlus"];
[dcit setObject:[NSNumber numberWithFloat :-25.5] forKey:@"RealMinus"];
[dcit writeToFile:@"/tmp/numbers.dct" atomically:YES];
//---------------------------------------
and the file numbers.dct is
result is OK
2006-10-17 07:35:53.782 gui2[10550] BY YES
2006-10-17 07:35:53.782 gui2[10550] BN NO
2006-10-17 07:35:53.782 gui2[10550] IP 10
2006-10-17 07:35:53.782 gui2[10550] IM -10
2006-10-17 07:35:53.782 gui2[10550] RP 25.5
2006-10-17 07:35:53.782 gui2[10550] RM -25.5
so maybe is bug in saving NSNumber (ie the quotes around <*I"-10"> and <*R"-25.5">)
currently using gnustep-base 1.8.0
for now i can't test it with current SVN version so if someone could test it if this still ocurs or if already repaired.
thanks