From 7dab5f7dc8feee2d2dd8dd93f38fc23a6e7c0f4a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 4 Jan 2008 12:08:22 -0800 Subject: [PATCH] Refactoring _sourceViewer --- English.lproj/Debugger.nib/classes.nib | 4 ++-- English.lproj/Debugger.nib/keyedobjects.nib | Bin 17621 -> 17623 bytes Source/DebuggerWindowController.h | 2 +- Source/DebuggerWindowController.m | 18 +++++++++--------- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/English.lproj/Debugger.nib/classes.nib b/English.lproj/Debugger.nib/classes.nib index 6154482..5cbbf3f 100644 --- a/English.lproj/Debugger.nib/classes.nib +++ b/English.lproj/Debugger.nib/classes.nib @@ -28,8 +28,6 @@ NSButton _runButton NSButton - _sourceViewer - NSTextView _sourceViewerScroller NSScrollView _stepInButton @@ -44,6 +42,8 @@ NSTreeController registerView NSOutlineView + sourceViewer + NSTextView stackController NSArrayController status diff --git a/English.lproj/Debugger.nib/keyedobjects.nib b/English.lproj/Debugger.nib/keyedobjects.nib index 34f58cc0194ac11bc332f3fc7460e6578e3b6f8c..a2a3c0d225f762173feabe4ae6c3c007cae6d3ea 100644 GIT binary patch delta 6385 zcmaiW2Y3|K`}NM|&TQYE?R|H)%=R*q>`Z__s3PzSMZnM^p{*E70x2XxaA!e5I-i@sC@c7-_A47Oy-_@?t9+6=ic}DB;>>-WIcrd zUM*jeiXrzC-9azV8x(?mAP!yxL%}dG5|n~UPzA<X-o7kmOf1z&=%z)^4voCLMt3b+MsgFE0ZxCico2jC%ijPg(v z#ZVkoqAFC4>QF0cL+z=xd?V5(b&%h$5jGARkG+b$hE2dGVy|P9u*ujIY$`Sln~u%E zW@2w(v#=EQCiWIK8=Hg8#oor|Ve_#CydJ5385Tb8^u{q6TagSUBHx&eo|6mtC~}P( z!1dYa)ToqQf8x$@7r39f%iI<2DtC>$!QJF;b9cFWNd!$If+QkJBH|>XOCp9OVof4M z5^*IFPZIGbk#G{Bl1SDuo*Xm=O+XH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@(Y>sS;yc^jb`5u3*pb+`vE#9mvD2}$vGcL-V&BIu$F9V##_D3%VmD$pW4B`ei`}OY z8qgZrN|SVe4%5TwB6<}4EL}>ErYq0E01NM#{(;C4(~> zM#mT!6Jud)jDsN=7vo_f49z^tlra^|7-k$Zfk`qo%oJuiGmDwayvV%FEMOKh%a|3+ zYGy6-2D5?L$ZTe|G4C-um=BrV%qPsDBvY3y%(iCxvlH1Jvj=4l&#uXSC3}7Lw(R}c zm$UE1HE|*yj_1dR$DfbSjxUI>j(-uq7_U$06OM#4;Yx%O(L^lKEYTvdHStbjdtygo zXJS`kcVbUsZ{qXB7m2SD2NDMphZ9E=#}lU#XA|cW-zC0JTuxj`{FL}PaXpc|nYfj> zow%E*Pc*OsR>%StW5ukLm9t6~XEm&jHL@1g#yVJ%b+HudV}op%jj}YG&9ZC`+njCB zc4T+4AG3Se&)F~81METe2z!h@$(~`)vlrRR?2l|6d!4<>{>I*6>)Agzgae$2lX40U z=d^7&183%J9KpFbit}+nF2d1Voa4A$t|j*f*N*GJb><%9x^Yi(J-A+6Uv2<5h#Sg1 z!xeGGTq!p?%{*#NzRb<%7IKTZrQECB3T_p*hFi|eQ!Ge diff --git a/Source/DebuggerWindowController.h b/Source/DebuggerWindowController.h index d5c7c16..e302f9c 100644 --- a/Source/DebuggerWindowController.h +++ b/Source/DebuggerWindowController.h @@ -32,7 +32,7 @@ IBOutlet NSTextField *status; IBOutlet NSTextField *errormsg; - IBOutlet NSTextView *_sourceViewer; + IBOutlet NSTextView *sourceViewer; IBOutlet NSScrollView *_sourceViewerScroller; IBOutlet NSButton *_stepInButton; diff --git a/Source/DebuggerWindowController.m b/Source/DebuggerWindowController.m index 9bd45f4..2be5c44 100644 --- a/Source/DebuggerWindowController.m +++ b/Source/DebuggerWindowController.m @@ -46,10 +46,10 @@ - (void)awakeFromNib { // set up the scroller for the source viewer - [_sourceViewer setMaxSize:NSMakeSize(FLT_MAX, FLT_MAX)]; - [[_sourceViewer textContainer] setContainerSize:NSMakeSize(FLT_MAX, FLT_MAX)]; - [[_sourceViewer textContainer] setWidthTracksTextView:NO]; - [_sourceViewer setHorizontallyResizable:YES]; + [sourceViewer setMaxSize:NSMakeSize(FLT_MAX, FLT_MAX)]; + [[sourceViewer textContainer] setContainerSize:NSMakeSize(FLT_MAX, FLT_MAX)]; + [[sourceViewer textContainer] setWidthTracksTextView:NO]; + [sourceViewer setHorizontallyResizable:YES]; [_sourceViewerScroller setHasHorizontalScroller:YES]; [_sourceViewerScroller display]; } @@ -223,7 +223,7 @@ int selection = [stackController selectionIndex]; if (selection == NSNotFound) { - [_sourceViewer setString:@""]; + [sourceViewer setString:@""]; return; } @@ -231,7 +231,7 @@ NSString *filename = [[stack objectAtIndex:selection] valueForKey:@"filename"]; filename = [[NSURL URLWithString:filename] path]; NSString *text = [NSString stringWithContentsOfFile:filename]; - [_sourceViewer setString:text]; + [sourceViewer setString:text]; // go through the document until we find the NSRange for the line we want int destination = [[[stack objectAtIndex:selection] valueForKey:@"lineno"] intValue]; @@ -247,13 +247,13 @@ NSRange lineRange = NSMakeRange(lineStart, lineEnd - lineStart); // colorize it so the user knows which line we're on in the stack - [[_sourceViewer textStorage] setAttributes:[NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:[NSColor redColor], [NSColor yellowColor], nil] + [[sourceViewer textStorage] setAttributes:[NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:[NSColor redColor], [NSColor yellowColor], nil] forKeys:[NSArray arrayWithObjects:NSForegroundColorAttributeName, NSBackgroundColorAttributeName, nil]] range:lineRange]; - [_sourceViewer scrollRangeToVisible:[text lineRangeForRange:NSMakeRange(lineStart, lineEnd - lineStart)]]; + [sourceViewer scrollRangeToVisible:[text lineRangeForRange:NSMakeRange(lineStart, lineEnd - lineStart)]]; // make sure the font stays Monaco - [_sourceViewer setFont:[NSFont fontWithName:@"Monaco" size:10.0]]; + [sourceViewer setFont:[NSFont fontWithName:@"Monaco" size:10.0]]; } /** -- 2.43.5