From 94949123edffa349e0e42dac64943c6737299922 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 4 Jan 2008 12:01:29 -0800 Subject: [PATCH] Refactoring _registerController --- English.lproj/Debugger.nib/classes.nib | 4 ++-- English.lproj/Debugger.nib/keyedobjects.nib | Bin 17617 -> 17629 bytes Source/DebuggerWindowController.h | 2 +- Source/DebuggerWindowController.m | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/English.lproj/Debugger.nib/classes.nib b/English.lproj/Debugger.nib/classes.nib index b249ad1..97f1b0d 100644 --- a/English.lproj/Debugger.nib/classes.nib +++ b/English.lproj/Debugger.nib/classes.nib @@ -28,8 +28,6 @@ NSTextField _reconnectButton NSButton - _registerController - NSTreeController _registerView NSOutlineView _runButton @@ -46,6 +44,8 @@ NSButton _stepOverButton NSButton + registerController + NSTreeController stackController NSArrayController diff --git a/English.lproj/Debugger.nib/keyedobjects.nib b/English.lproj/Debugger.nib/keyedobjects.nib index 00dfa60dbd5e002ddb48b31a8979d5c4a595f4f3..39c23c2d7bb3dc15de15e1aa4c73fa06d7d82383 100644 GIT binary patch delta 4024 zcmZuz3w#sx9luL|mr}6hUtVo#OA77fUdi1hxw`@dq(vAAq}7%dXiF?@hLzHmJQ@PB z+zlL{JUu}-=aix7RK|F0u1>Z&oot9YP^VNu7zilx5J3fB`(H|>d^GvwlKk%bd*1i= z`~MECA`h=3{~(iK>qi_h74k|V2(8ct?XVC+5QYeJz#>=*KZ9kk99F@-unyM4M%V-o z!(*@+w!)L}ENp|FunYbSo$y!q8@vqvgnjT19EKzC0UU*6a2!s+hj1D`f^%>lF2QBE z3SUtKMN)POQJK^LY9KX)%BO}=4kzWL7>cDNN~S#2NNN-{nkuErs0q}q)KqF3RY_G* zGpK6wpzV%fM2&qVaoE1fey{yL`)d0d`&#=t`+EBZ`~7y){=lw^l#?X6VOKGAJfjbJ z-e%Wp^|`x73>uJG^@)B?zo1{#FX@-{FZ3(=SNb>lcLqrsWQsx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/DebuggerWindowController.h +++ b/Source/DebuggerWindowController.h @@ -25,7 +25,7 @@ IBOutlet NSArrayController *stackController; NSArray *stack; - IBOutlet NSTreeController *_registerController; + IBOutlet NSTreeController *registerController; IBOutlet NSOutlineView *_registerView; NSMutableArray *_expandedRegisters; diff --git a/Source/DebuggerWindowController.m b/Source/DebuggerWindowController.m index 3c96f27..ef170c6 100644 --- a/Source/DebuggerWindowController.m +++ b/Source/DebuggerWindowController.m @@ -153,8 +153,8 @@ // sh!t when used with NSTreeController. http://www.cocoadev.com/index.pl?NSTreeControllerBugOrDeveloperError // was the inspiration for this fix (below) but the author says that inserting does not work too well, but // that's okay for us as we just need to replace the entire thing. - [_registerController setContent:nil]; - [_registerController setContent:[[elm rootElement] children]]; + [registerController setContent:nil]; + [registerController setContent:[[elm rootElement] children]]; for (int i = 0; i < [_registerView numberOfRows]; i++) { @@ -296,10 +296,10 @@ NSIndexPath *masterPath = [node indexPath]; for (int i = 0; i < [children count]; i++) { - [_registerController insertObject:[children objectAtIndex:i] atArrangedObjectIndexPath:[masterPath indexPathByAddingIndex:i]]; + [registerController insertObject:[children objectAtIndex:i] atArrangedObjectIndexPath:[masterPath indexPathByAddingIndex:i]]; } - [_registerController rearrangeObjects]; + [registerController rearrangeObjects]; } @end -- 2.43.5