mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
* ChangeLog
* Source/NSXMLDocument.m * Source/NSXMLElement.m * Source/NSXMLNode.m: Implement copyWithZone:, correct issues with previous revert. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34428 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fa365da6de
commit
0d998a3394
4 changed files with 89 additions and 17 deletions
|
@ -206,15 +206,26 @@ GS_PRIVATE_INTERNAL(NSXMLNode)
|
|||
|
||||
- (id) copyWithZone: (NSZone*)zone
|
||||
{
|
||||
id c = [[self class] allocWithZone: zone];
|
||||
id c = [[self class] allocWithZone: zone];
|
||||
// NSEnumerator *en = [internal->children objectEnumerator];
|
||||
// id obj = nil;
|
||||
|
||||
c = [c initWithKind: internal->kind options: internal->options];
|
||||
[c setName: [self name]];
|
||||
[c setURI: [self URI]];
|
||||
[c setObjectValue: [self objectValue]];
|
||||
[c setStringValue: [self stringValue]];
|
||||
|
||||
/*
|
||||
while((obj = [en nextObject]) != nil)
|
||||
{
|
||||
NSXMLNode *n = [obj copyWithZone:zone];
|
||||
[self addChild: n];
|
||||
}
|
||||
*/
|
||||
|
||||
return c;
|
||||
}
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue