From 48cf98ebd8b61afc2058ed660038c026def62d6d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 9 Jul 2008 13:45:02 -0400 Subject: [PATCH] Instantiate the Debugger and Breakpoint controllers in the NIB rather than in code * English.lproj/MainMenu.xib: Instantiate DebuggerWindowController and BreakpointWindowController * Source/AppDelegate.m: (applicationDidFinishLaunching:): Remove the two object init lines --- English.lproj/MainMenu.xib | 131 +++++++++++++++++++++++++++++++++++-- Source/AppDelegate.m | 2 - 2 files changed, 126 insertions(+), 7 deletions(-) diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index fdd7f54..3d3c20e 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -755,6 +755,12 @@ {{0, 0}, {1440, 878}} {3.40282e+38, 3.40282e+38} + + BreakpointWindowController + + + DebuggerWindowController + @@ -1594,6 +1600,16 @@ + + 286 + + + + + 287 + + + @@ -1724,6 +1740,8 @@ 277.IBPluginDependency 278.IBPluginDependency 279.IBPluginDependency + 286.IBPluginDependency + 287.IBPluginDependency 29.IBEditorWindowLastContentRect 29.IBPluginDependency 29.ImportedFromIB2 @@ -1865,6 +1883,8 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin {{500, 801}, {317, 20}} com.apple.InterfaceBuilder.CocoaPlugin @@ -1901,7 +1921,7 @@ - 285 + 287 @@ -1954,6 +1974,110 @@ + + BSSourceView + NSView + + delegate + id + + + IBProjectSource + Source/BSSourceView.h + + + + BreakpointWindowController + NSWindowController + + YES + + YES + addBreakpoint: + removeBreakpoint: + + + YES + id + id + + + + YES + + YES + arrayController + sourceView + + + YES + NSArrayController + BSSourceView + + + + IBProjectSource + Source/BreakpointWindowController.h + + + + DebuggerWindowController + NSWindowController + + YES + + YES + reconnect: + run: + stepIn: + stepOut: + stepOver: + + + YES + id + id + id + id + id + + + + YES + + YES + errormsg + reconnectButton + registerController + registerView + runButton + sourceViewer + stackController + statusmsg + stepInButton + stepOutButton + stepOverButton + + + YES + NSTextField + NSToolbarItem + NSTreeController + NSOutlineView + NSToolbarItem + BSSourceView + NSArrayController + NSTextField + NSToolbarItem + NSToolbarItem + NSToolbarItem + + + + IBProjectSource + Source/DebuggerWindowController.h + + FirstResponder NSObject @@ -1964,10 +2088,7 @@ NSObject - - IBProjectSource - Source/BSSourceView.h - + NSObject diff --git a/Source/AppDelegate.m b/Source/AppDelegate.m index 496de10..e595867 100644 --- a/Source/AppDelegate.m +++ b/Source/AppDelegate.m @@ -49,8 +49,6 @@ */ - (void)applicationDidFinishLaunching:(NSNotification *)notif { - debugger = [[DebuggerWindowController alloc] init]; - breakpoint = [[BreakpointWindowController alloc] init]; [NSThread detachNewThreadSelector:@selector(versionCheck:) toTarget:self withObject:self]; } -- 2.22.5