Filter out the CLASSNAME property so that the condition to request more children...
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 28 Feb 2011 02:53:05 +0000 (21:53 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 28 Feb 2011 02:53:05 +0000 (21:53 -0500)
CHANGES
Source/VariableNode.m

diff --git a/CHANGES b/CHANGES
index e809efc9a750654370710a87600d4571114d7c06..226579d6be30121595b84a003e0e7a4d8d174eaa 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -8,6 +8,11 @@ MacGDBp                                                               CHANGE LOG
   breakpoint
 
 
+1.4.1
+#####################
+- Fix: Objects with nested objects wouldn't always load their child keys
+
+
 1.4 Beta 2
 #####################
 - Fix: After clicking on a stack frame with a virtual file, the debugger front
index 8d2387a698c5717e0d92c984d557d43f5df198a0..5e38c07707f4e26b945360a66eb3633b268f45e0 100644 (file)
     // Other child nodes may be the string value.
     if ([child isKindOfClass:[NSXMLElement class]]) {
       VariableNode* node = [[VariableNode alloc] initWithXMLNode:(NSXMLElement*)child];
-      [children_ addObject:[node autorelease]];
+      // Don't include the CLASSNAME property as that information is retreeived
+      // elsewhere.
+      if (![node.name isEqualToString:@"CLASSNAME"])
+        [children_ addObject:node];
+      [node release];
     }
   }
 }
@@ -90,7 +94,7 @@
 - (NSArray*)dynamicChildren
 {
   NSArray* children = self.children;
-  if (![self isLeaf] && [children count] < 1) {
+  if (![self isLeaf] && (NSInteger)[children count] < self.childCount) {
     // If this node has children but they haven't been loaded from the backend,
     // request them asynchronously.
     [[AppDelegate instance].debugger fetchChildProperties:self];