mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
277bb71db3
commit
f12678ccf2
2 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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"])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue