From da2d78a8682588dcb2f24b792cfa5c4024cba3f6 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 4 Jan 2008 01:50:27 -0800 Subject: [PATCH] Add some test code to see how Leopard behaves * MacGDBp.xcodeproj: Change to the 10.5 SDK * Source/DebuggerWindowController.m: Play with the new and improved NSTreeController --- MacGDBp.xcodeproj/project.pbxproj | 4 ++-- Source/DebuggerWindowController.m | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/MacGDBp.xcodeproj/project.pbxproj b/MacGDBp.xcodeproj/project.pbxproj index 1b0c461..b520caa 100644 --- a/MacGDBp.xcodeproj/project.pbxproj +++ b/MacGDBp.xcodeproj/project.pbxproj @@ -314,7 +314,7 @@ GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; PREBINDING = NO; - SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; + SDKROOT = /Developer/SDKs/MacOSX10.5.sdk; }; name = Debug; }; @@ -325,7 +325,7 @@ GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; PREBINDING = NO; - SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; + SDKROOT = /Developer/SDKs/MacOSX10.5.sdk; }; name = Release; }; diff --git a/Source/DebuggerWindowController.m b/Source/DebuggerWindowController.m index 4558657..d2ea2bd 100644 --- a/Source/DebuggerWindowController.m +++ b/Source/DebuggerWindowController.m @@ -261,6 +261,7 @@ */ - (void)outlineViewItemDidExpand: (NSNotification *)notif { + NSLog(@"notification expanded: %@", notif); // XXX: This very well may break because NSTreeController sends us a _NSArrayControllerTreeNode object // which is presumably private, and thus this is not a reliable method for getting the object. But // we damn well need it, so f!ck the rules and we're using it. @@ -279,9 +280,10 @@ /** * Called when an item was collapsed. This allows us to remove it from the list of expanded items */ -- (void)outlineViewItemDidCollapse: (NSNotification *)notif +- (void)outlineViewItemDidCollapse: (id)notif { [_expandedRegisters removeObject: [[[[notif userInfo] objectForKey: @"NSObject"] observedObject] variable]]; + NSLog(@"outlineViewDidCollapse: %@", notif); } /** @@ -289,6 +291,7 @@ */ - (void)addChildren: (NSArray *)children toNode: (id)node { + NSLog(@"addChildren node: %@", node); // XXX: this may break like in outlineViewItemDidExpand: NSIndexPath *masterPath = [node indexPath]; for (int i = 0; i < [children count]; i++) -- 2.22.5