From 5985f2c63c16d1b8830559bbca60971e662bf8aa Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 4 Jan 2008 12:02:02 -0800 Subject: [PATCH] Refactoring _registerView --- English.lproj/Debugger.nib/classes.nib | 4 ++-- English.lproj/Debugger.nib/keyedobjects.nib | Bin 17629 -> 17621 bytes Source/DebuggerWindowController.h | 2 +- Source/DebuggerWindowController.m | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/English.lproj/Debugger.nib/classes.nib b/English.lproj/Debugger.nib/classes.nib index 97f1b0d..a5ab17e 100644 --- a/English.lproj/Debugger.nib/classes.nib +++ b/English.lproj/Debugger.nib/classes.nib @@ -28,8 +28,6 @@ NSTextField _reconnectButton NSButton - _registerView - NSOutlineView _runButton NSButton _sourceViewer @@ -46,6 +44,8 @@ NSButton registerController NSTreeController + registerView + NSOutlineView stackController NSArrayController diff --git a/English.lproj/Debugger.nib/keyedobjects.nib b/English.lproj/Debugger.nib/keyedobjects.nib index 39c23c2d7bb3dc15de15e1aa4c73fa06d7d82383..2f96d4ddbac02d38a070dcec50177e14bf581a8d 100644 GIT binary patch delta 3934 zcmbVOX>=4-7Ov{t$^wMEY$PNh-7KlDt*iQVSG^<%$RZ3V2uciFFhFQDlS~4gG$CN@ zDhEeFwxJwF5m7`ADx+dhm>dvMP)EfDQ3M5191M$qAc7z;uR6%0f96d3RPy@1@7?9A z_ubsRbJ)-3urK>rVD`D%+d6wXIs$HkQWytiFcBs}2>uLJFcqf3ba)W{4vWEthv6Ua z2s{dp!BTh%o`zNM0<3|x@CvMl4X_E`gOA}8*a4ryPWT*l!58o)dhs`tQS@WFvt9j94+gWS}i|uH!$YRqhHp5~&S!}k&=2@)UV!K&v zfyD|ID_g8)vB8~8M<|A#a0B#WW-xC1!Ga#Bx9KwXj4cmGYWhd&>uYQ5mV&;~UQ9jX zh9Tycra-s%mX?RY;o9)E$K7#dFr4nY%r)lMqbG-|Lw8NA4_$|FRb56jnO|SKQAb^m zr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K zi{vG;iKJ~NTgl7h6|&uGzlAS2K|Uv6kkjNMxlB5XoyD%=lwwrer#P#)pm>n=@-1!_ F{|ndn&=3Fs diff --git a/Source/DebuggerWindowController.h b/Source/DebuggerWindowController.h index 36c41c8..30f3b9d 100644 --- a/Source/DebuggerWindowController.h +++ b/Source/DebuggerWindowController.h @@ -26,7 +26,7 @@ NSArray *stack; IBOutlet NSTreeController *registerController; - IBOutlet NSOutlineView *_registerView; + IBOutlet NSOutlineView *registerView; NSMutableArray *_expandedRegisters; IBOutlet NSTextField *_status; diff --git a/Source/DebuggerWindowController.m b/Source/DebuggerWindowController.m index ef170c6..cc80218 100644 --- a/Source/DebuggerWindowController.m +++ b/Source/DebuggerWindowController.m @@ -156,12 +156,12 @@ [registerController setContent:nil]; [registerController setContent:[[elm rootElement] children]]; - for (int i = 0; i < [_registerView numberOfRows]; i++) + for (int i = 0; i < [registerView numberOfRows]; i++) { - int index = [_expandedRegisters indexOfObject:[[[_registerView itemAtRow:i] observedObject] variable]]; + int index = [_expandedRegisters indexOfObject:[[[registerView itemAtRow:i] observedObject] variable]]; if (index != NSNotFound) { - [_registerView expandItem:[_registerView itemAtRow:i]]; + [registerView expandItem:[registerView itemAtRow:i]]; } } } -- 2.43.5