* Store the DebuggerAttached value in the preferences
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 16 Dec 2010 14:18:41 +0000 (09:18 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 16 Dec 2010 14:18:41 +0000 (09:18 -0500)
* Respect the attached checkbox on start

English.lproj/Debugger.xib
Source/AppDelegate.m
Source/DebuggerController.h
Source/DebuggerController.m

index 6ef706962bf84ec5aac438123100f4de6e7f17eb..92b0e4776cc13ccdd770891bcd5a922139d437d1 100644 (file)
@@ -12,7 +12,7 @@
                </object>
                <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
                        <bool key="EncodedWithXMLCoder">YES</bool>
-                       <integer value="593"/>
+                       <integer value="592"/>
                </object>
                <object class="NSArray" key="IBDocument.PluginDependencies">
                        <bool key="EncodedWithXMLCoder">YES</bool>
                                                                        </object>
                                                                        <string key="NSFrameSize">{402, 402}</string>
                                                                        <reference key="NSSuperview" ref="943668178"/>
+                                                                       <reference key="NSNextKeyView" ref="294150047"/>
                                                                        <reference key="NSDocView" ref="294150047"/>
                                                                        <reference key="NSBGColor" ref="866192031"/>
                                                                        <object class="NSCursor" key="NSCursor">
                                                        </object>
                                                        <string key="NSFrame">{{-1, -1}, {402, 402}}</string>
                                                        <reference key="NSSuperview" ref="451591711"/>
+                                                       <reference key="NSNextKeyView" ref="138455094"/>
                                                        <int key="NSsFlags">560</int>
                                                        <reference key="NSVScroller" ref="896820060"/>
                                                        <reference key="NSHScroller" ref="498580399"/>
                                <string key="NSFrameAutosaveName">InspectorWindow</string>
                        </object>
                        <object class="NSUserDefaultsController" id="463528398">
+                               <object class="NSMutableArray" key="NSDeclaredKeys">
+                                       <bool key="EncodedWithXMLCoder">YES</bool>
+                                       <string>DebuggerAttached</string>
+                               </object>
                                <bool key="NSSharedInstance">YES</bool>
                        </object>
                </object>
                                        </object>
                                        <int key="connectionID">594</int>
                                </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" key="connection">
+                                               <string key="label">attachedCheckbox_</string>
+                                               <reference key="source" ref="78922448"/>
+                                               <reference key="destination" ref="161298121"/>
+                                       </object>
+                                       <int key="connectionID">595</int>
+                               </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBBindingConnection" key="connection">
+                                               <string key="label">value: values.DebuggerAttached</string>
+                                               <reference key="source" ref="660002690"/>
+                                               <reference key="destination" ref="463528398"/>
+                                               <object class="NSNibBindingConnector" key="connector">
+                                                       <reference key="NSSource" ref="660002690"/>
+                                                       <reference key="NSDestination" ref="463528398"/>
+                                                       <string key="NSLabel">value: values.DebuggerAttached</string>
+                                                       <string key="NSBinding">value</string>
+                                                       <string key="NSKeyPath">values.DebuggerAttached</string>
+                                                       <int key="NSNibBindingConnectorVersion">2</int>
+                                               </object>
+                                       </object>
+                                       <int key="connectionID">596</int>
+                               </object>
                        </object>
                        <object class="IBMutableOrderedSet" key="objectRecords">
                                <object class="NSArray" key="orderedObjects">
                                        <integer value="1"/>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
                                        <integer value="1"/>
-                                       <string>{{449, 334}, {617, 227}}</string>
+                                       <string>{{444, 325}, {617, 227}}</string>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
                                        <string>{{418, 770}, {617, 0}}</string>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
                                        <integer value="1"/>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-                                       <string>{{373, 60}, {769, 501}}</string>
+                                       <string>{{368, 51}, {769, 501}}</string>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
                                        <integer value="0"/>
                                        <integer value="0"/>
-                                       <string>{{373, 60}, {769, 501}}</string>
+                                       <string>{{368, 51}, {769, 501}}</string>
                                        <integer value="1"/>
                                        <integer value="1"/>
                                        <string>{{344, 269}, {769, 501}}</string>
                                </object>
                        </object>
                        <nil key="sourceID"/>
-                       <int key="maxID">594</int>
+                       <int key="maxID">596</int>
                </object>
                <object class="IBClassDescriber" key="IBDocument.Classes">
                        <object class="NSMutableArray" key="referencedPartialClassDescriptions">
                                                <object class="NSArray" key="dict.sortedKeys">
                                                        <bool key="EncodedWithXMLCoder">YES</bool>
                                                        <string>attachedToggled:</string>
+                                                       <string>run:</string>
                                                        <string>showInspectorWindow:</string>
                                                        <string>stepIn:</string>
                                                        <string>stepOut:</string>
                                                        <string>id</string>
                                                        <string>id</string>
                                                        <string>id</string>
+                                                       <string>id</string>
                                                </object>
                                        </object>
                                        <object class="NSMutableDictionary" key="actionInfosByName">
                                                <object class="NSArray" key="dict.sortedKeys">
                                                        <bool key="EncodedWithXMLCoder">YES</bool>
                                                        <string>attachedToggled:</string>
+                                                       <string>run:</string>
                                                        <string>showInspectorWindow:</string>
                                                        <string>stepIn:</string>
                                                        <string>stepOut:</string>
                                                                <string key="name">attachedToggled:</string>
                                                                <string key="candidateClassName">id</string>
                                                        </object>
+                                                       <object class="IBActionInfo">
+                                                               <string key="name">run:</string>
+                                                               <string key="candidateClassName">id</string>
+                                                       </object>
                                                        <object class="IBActionInfo">
                                                                <string key="name">showInspectorWindow:</string>
                                                                <string key="candidateClassName">id</string>
                                                <bool key="EncodedWithXMLCoder">YES</bool>
                                                <object class="NSArray" key="dict.sortedKeys">
                                                        <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <string>attachedCheckbox_</string>
                                                        <string>errormsg</string>
                                                        <string>inspector</string>
                                                        <string>sourceViewer</string>
                                                </object>
                                                <object class="NSMutableArray" key="dict.values">
                                                        <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <string>NSButton</string>
                                                        <string>NSTextField</string>
                                                        <string>NSWindow</string>
                                                        <string>BSSourceView</string>
                                                <bool key="EncodedWithXMLCoder">YES</bool>
                                                <object class="NSArray" key="dict.sortedKeys">
                                                        <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <string>attachedCheckbox_</string>
                                                        <string>errormsg</string>
                                                        <string>inspector</string>
                                                        <string>sourceViewer</string>
                                                </object>
                                                <object class="NSMutableArray" key="dict.values">
                                                        <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <object class="IBToOneOutletInfo">
+                                                               <string key="name">attachedCheckbox_</string>
+                                                               <string key="candidateClassName">NSButton</string>
+                                                       </object>
                                                        <object class="IBToOneOutletInfo">
                                                                <string key="name">errormsg</string>
                                                                <string key="candidateClassName">NSTextField</string>
index 75f49938ad081ace0e9015ab8ce59006ae849a79..952ab3a5d809726918ea685e141386d4d8fd420c 100644 (file)
@@ -36,6 +36,7 @@
     [NSNumber numberWithBool:YES],  @"InspectorWindowVisible",
     [NSMutableArray array],         @"PathReplacements",
     [NSNumber numberWithBool:YES],  @"BreakOnFirstLine",
+    [NSNumber numberWithBool:YES],  @"DebuggerAttached",
     nil
   ];
   
index cd464b49dddb89d45e940cc534ae0ab58c189fbe..080f4033f0f07c40d3b02f56d954ae7d1cc5c830 100644 (file)
@@ -31,7 +31,9 @@
   // Dictionary of transcations to tree nodes that are used when properties
   // are requested from the backend.
   NSMutableDictionary* pendingProperties_;
-  
+
+  IBOutlet NSButton* attachedCheckbox_;
+
   StackController* stackController;
   IBOutlet NSArrayController* stackArrayController;
   
index b74e3a0bd7738975b833b46c8f1cb522b369d9c2..c3d2dce1c4a6d16659dfcf5e6dbe62d1c20e3eb6 100644 (file)
@@ -75,6 +75,7 @@
   [[self window] setTitle:[NSString stringWithFormat:@"GDBp @ %@:%d", [connection remoteHost], [connection port]]];
   [sourceViewer setDelegate:self];
   [stackArrayController setSortDescriptors:[NSArray arrayWithObject:[[[NSSortDescriptor alloc] initWithKey:@"index" ascending:YES] autorelease]]];
+  self.connection.attached = [attachedCheckbox_ state] == NSOnState;
 }
 
 /**