mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +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
ba2e2b7667
commit
b7f177766f
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>
|
2007-12-10 Chris Farber <chris@chrisfarber.net>
|
||||||
|
|
||||||
* Source/NSKeyValueObserving.m: implement methods needed for gui
|
* Source/NSKeyValueObserving.m: implement methods needed for gui
|
||||||
|
|
|
@ -267,7 +267,7 @@ static unsigned posForIndex(GSIArray array, unsigned index)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
[m appendFormat: @" (%u)", r.location];
|
[m appendFormat: @" %u", r.location];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[m appendString: @"]"];
|
[m appendString: @"]"];
|
||||||
|
@ -308,7 +308,7 @@ static unsigned posForIndex(GSIArray array, unsigned index)
|
||||||
unsigned v;
|
unsigned v;
|
||||||
uint8_t b;
|
uint8_t b;
|
||||||
|
|
||||||
r = GSIArrayItemAtIndex(_array, 0).ext;
|
r = GSIArrayItemAtIndex(_array, i).ext;
|
||||||
v = r.location;
|
v = r.location;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
@ -339,8 +339,8 @@ static unsigned posForIndex(GSIArray array, unsigned index)
|
||||||
[m appendBytes: &b length: 1];
|
[m appendBytes: &b length: 1];
|
||||||
}
|
}
|
||||||
while (v > 0);
|
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;
|
NSData *data = nil;
|
||||||
const uint8_t *bytes;
|
const uint8_t *bytes;
|
||||||
unsigned length;
|
unsigned length;
|
||||||
unsigned index;
|
unsigned index = 0;
|
||||||
|
|
||||||
if ([aCoder containsValueForKey: @"NSRangeData"])
|
if ([aCoder containsValueForKey: @"NSRangeData"])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue