debug keyed archiving

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25718 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2007-12-11 06:36:19 +00:00
parent 277bb71db3
commit f12678ccf2
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2007-12-11 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSIndexSet.m: Test and debug ([-initWithCoder:])
and ([-encodeWithCoder:]) methods for keyed archiving of sets
with multiple index ranges.
2007-12-10 Chris Farber <chris@chrisfarber.net>
* Source/NSKeyValueObserving.m: implement methods needed for gui

View file

@ -267,7 +267,7 @@ static unsigned posForIndex(GSIArray array, unsigned index)
}
else
{
[m appendFormat: @" (%u)", r.location];
[m appendFormat: @" %u", r.location];
}
}
[m appendString: @"]"];
@ -308,7 +308,7 @@ static unsigned posForIndex(GSIArray array, unsigned index)
unsigned v;
uint8_t b;
r = GSIArrayItemAtIndex(_array, 0).ext;
r = GSIArrayItemAtIndex(_array, i).ext;
v = r.location;
do
{
@ -339,8 +339,8 @@ static unsigned posForIndex(GSIArray array, unsigned index)
[m appendBytes: &b length: 1];
}
while (v > 0);
[aCoder encodeObject: m forKey: @"NSRangeData"];
}
[aCoder encodeObject: m forKey: @"NSRangeData"];
}
}
@ -555,7 +555,7 @@ static unsigned posForIndex(GSIArray array, unsigned index)
NSData *data = nil;
const uint8_t *bytes;
unsigned length;
unsigned index;
unsigned index = 0;
if ([aCoder containsValueForKey: @"NSRangeData"])
{