mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 09:31:07 +00:00
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:
parent
47571e082d
commit
3f6bf1fbba
8 changed files with 75 additions and 78 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue