Add skeletal NSXML work as requested.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27824 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-02-09 16:16:11 +00:00
parent 2f24254d4f
commit 910deff1a6
21 changed files with 2553 additions and 4 deletions

View file

@ -1673,11 +1673,22 @@ compare(id elem1, id elem2, void* context)
[self subclassResponsibility: _cmd];
}
/** Not implemented
/** Replaces the values in the receiver at the locations given by the
* indexes set with values from the objects array.
*/
- (void) replaceObjectsAtIndexes: (NSIndexSet *)indexes
withObjects: (NSArray *)objects
{
NSUInteger index = [indexes firstIndex];
NSEnumerator *enumerator = [objects objectEnumerator];
id object = [enumerator nextObject];
while (object != nil && index != NSNotFound)
{
[self replaceObjectAtIndex: index withObject: object];
object = [enumerator nextObject];
index = [indexes indexGreaterThanIndex: index];
}
}
/**
@ -1721,10 +1732,23 @@ compare(id elem1, id elem2, void* context)
[self subclassResponsibility: _cmd];
}
/** Not implemented
/** Inserts the values from the objects array into the receiver at the
* locations given by the indexes set.<br />
* The values are inserted in the same order that they appear in the
* array.
*/
- (void) insertObjects: (NSArray *)objects atIndexes: (NSIndexSet *)indexes
{
NSUInteger index = [indexes firstIndex];
NSEnumerator *enumerator = [objects objectEnumerator];
id object = [enumerator nextObject];
while (object != nil && index != NSNotFound)
{
[self insertObject: object atIndex: index];
object = [enumerator nextObject];
index = [indexes indexGreaterThanIndex: index];
}
}
/** <override-subclass />