Revert ABI breakage

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34410 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2012-01-04 09:20:32 +00:00
parent 47571e082d
commit 3f6bf1fbba
8 changed files with 75 additions and 78 deletions

View file

@ -32,6 +32,7 @@
{
[_attributes release];
[_namespaces release];
[_children release];
[super dealloc];
}
@ -104,15 +105,7 @@
- (void) setAttributesAsDictionary: (NSDictionary*)attributes
{
NSString *key = nil;
NSEnumerator *en = [attributes keyEnumerator];
while((key = [en nextObject]) != nil)
{
NSXMLNode *attribute = [NSXMLNode attributeWithName: key
stringValue: [attributes objectForKey: key]];
[self addAttribute: attribute];
}
ASSIGN(_attributes, [attributes mutableCopy]);
}
- (NSArray*) attributes
@ -198,14 +191,13 @@
- (void) setChildren: (NSArray*)children
{
ASSIGN(_children, [children mutableCopy]);
// _childrenHaveMutated = YES;
_childrenHaveMutated = YES;
}
- (void) addChild: (NSXMLNode*)child
{
[child setParent: self];
[_children addObject: child];
// _childrenHaveMutated = YES;
_childrenHaveMutated = YES;
}
- (void) replaceChildAtIndex: (NSUInteger)index withNode: (NSXMLNode*)node