From 09ca96a0d0ce8c92db13b7535e08cb07ae794756 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 2 Sep 2019 19:08:41 -0400 Subject: [PATCH] Rewire Debugger.xib to properties rather than ivars. Also remove dead statusField property. --- English.lproj/Debugger.xib | 23 ++++++++++++----------- Source/DebuggerController.h | 1 - Source/DebuggerController.m | 3 --- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/English.lproj/Debugger.xib b/English.lproj/Debugger.xib index c8b3cbc..1cf1cec 100644 --- a/English.lproj/Debugger.xib +++ b/English.lproj/Debugger.xib @@ -1,19 +1,20 @@ + - - - - - - - + + + + + + + @@ -71,7 +72,7 @@ - + @@ -189,7 +190,7 @@ - + @@ -421,7 +422,7 @@ variables - + @@ -449,7 +450,7 @@ - + diff --git a/Source/DebuggerController.h b/Source/DebuggerController.h index 0a5a66b..55e5d20 100644 --- a/Source/DebuggerController.h +++ b/Source/DebuggerController.h @@ -35,7 +35,6 @@ @property(retain) IBOutlet NSTreeController* variablesTreeController; @property(retain) IBOutlet NSOutlineView* variablesOutlineView; -@property(retain) IBOutlet NSTextField* statusField; @property(retain) IBOutlet NSSegmentedControl* segmentControl; @property(retain) IBOutlet NSTabView* tabView; diff --git a/Source/DebuggerController.m b/Source/DebuggerController.m index e6bffbe..cb89004 100644 --- a/Source/DebuggerController.m +++ b/Source/DebuggerController.m @@ -100,7 +100,6 @@ [_variablesOutlineView release]; [_segmentControl release]; - [_statusField release]; [_tabView release]; [super dealloc]; @@ -170,8 +169,6 @@ } else { [self debuggerDisconnected]; } - } else if ([keyPath isEqualToString:@"status"]) { - self.statusField.textColor = self.model.lastError ? [NSColor redColor] : [NSColor textColor]; } } else if (object == _segmentControl.cell) { [[NSUserDefaults standardUserDefaults] setValue:@(_segmentControl.selectedSegment) -- 2.43.5