From 5742bdbfaf6bcf5ab35c7850fc84ec0fad795f49 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 2 Sep 2019 13:27:18 -0400 Subject: [PATCH] Convert the remaining DebuggerController IBOutlets to properties. --- Source/DebuggerController.h | 22 ++++++++-------------- Source/DebuggerController.m | 12 ++++++++---- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/Source/DebuggerController.h b/Source/DebuggerController.h index 6d4435c..0a5a66b 100644 --- a/Source/DebuggerController.h +++ b/Source/DebuggerController.h @@ -23,23 +23,17 @@ @class DebuggerModel; @interface DebuggerController : NSWindowController -{ - IBOutlet NSButton* _attachedCheckbox; - - IBOutlet NSArrayController* _stackArrayController; - - IBOutlet NSTreeController* _variablesTreeController; - IBOutlet NSOutlineView* _variablesOutlineView; - - IBOutlet NSWindow* _inspector; - - IBOutlet BSSourceView* _sourceViewer; -} @property(readonly) DebuggerBackEnd* connection; @property(readonly) DebuggerModel* model; -@property(readonly) BSSourceView* sourceViewer; -@property(readonly) NSWindow* inspector; + +@property(retain) IBOutlet BSSourceView* sourceViewer; +@property(retain) IBOutlet NSWindow* inspector; + +@property(retain) IBOutlet NSButton* attachedCheckbox; +@property(retain) IBOutlet NSArrayController* stackArrayController; +@property(retain) IBOutlet NSTreeController* variablesTreeController; +@property(retain) IBOutlet NSOutlineView* variablesOutlineView; @property(retain) IBOutlet NSTextField* statusField; @property(retain) IBOutlet NSSegmentedControl* segmentControl; diff --git a/Source/DebuggerController.m b/Source/DebuggerController.m index 677e475..e6bffbe 100644 --- a/Source/DebuggerController.m +++ b/Source/DebuggerController.m @@ -44,10 +44,6 @@ VariableNode* _selectedVariable; } -@synthesize connection = _connection; -@synthesize sourceViewer = _sourceViewer; -@synthesize inspector = _inspector; - /** * Initializes the window controller and sets the connection using preference * values @@ -95,6 +91,14 @@ [_evalController release]; [_expandedVariables release]; + [_sourceViewer release]; + [_inspector release]; + + [_attachedCheckbox release]; + [_stackArrayController release]; + [_variablesTreeController release]; + [_variablesOutlineView release]; + [_segmentControl release]; [_statusField release]; [_tabView release]; -- 2.43.5