From 581389d5cc76e3fe70ed73db910c3c6398f31532 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 5 Jan 2008 16:50:56 -0800 Subject: [PATCH] We now properly fetch registers who need to have more data attached * Source/DebuggerWindowController.m: ([DebuggerWindowController addChildren:toNode:]): Don't attach nodes through the controller, but rather through the XMLElement (via the node's -[representedObject]) --- Source/DebuggerWindowController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/DebuggerWindowController.m b/Source/DebuggerWindowController.m index 87b4292..d29a29c 100644 --- a/Source/DebuggerWindowController.m +++ b/Source/DebuggerWindowController.m @@ -271,10 +271,10 @@ */ - (void)addChildren:(NSArray *)children toNode:(NSTreeNode *)node { - NSIndexPath *masterPath = [node indexPath]; - for (int i = 0; i < [children count]; i++) + NSXMLElement *parent = [node representedObject]; + for (NSXMLNode *child in children) { - [registerController insertObject:[children objectAtIndex:i] atArrangedObjectIndexPath:[masterPath indexPathByAddingIndex:i]]; + [parent addChild:child]; } [registerController rearrangeObjects]; -- 2.22.5