From 3609660364425430e323c7d3169eb838de2d9488 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 2 Apr 2009 14:35:58 -0400 Subject: [PATCH] Have the inspector remember its visibility * Source/AppDelegate.m: (load): Set the default value * Source/DebuggerController.m: (init): Show/hide the inspector based on prefs * English.lproj/Debugger.xib: Bind the inspector's visibility --- English.lproj/Breakpoints.xib | 26 ++++++++++++--------- English.lproj/Debugger.xib | 44 ++++++++++++++++++++++++++++------- Source/AppDelegate.m | 1 + Source/DebuggerController.m | 3 +++ 4 files changed, 55 insertions(+), 19 deletions(-) diff --git a/English.lproj/Breakpoints.xib b/English.lproj/Breakpoints.xib index bae74e5..8da4be7 100644 --- a/English.lproj/Breakpoints.xib +++ b/English.lproj/Breakpoints.xib @@ -1,20 +1,28 @@ - + 1050 9G55 - 672 + 677 949.43 353.00 YES - YES com.apple.InterfaceBuilderKit com.apple.InterfaceBuilder.CocoaPlugin + + YES + + YES + + + YES + + YES @@ -36,7 +44,7 @@ {3.40282e+38, 3.40282e+38} - + 256 YES @@ -198,7 +206,6 @@ {{1, 17}, {572, 221}} - 4 @@ -231,7 +238,6 @@ {{1, 0}, {572, 17}} - 4 @@ -240,7 +246,6 @@ {{0, 19}, {574, 239}} - 562 @@ -312,7 +317,6 @@ {574, 484} - {{0, 0}, {1680, 1028}} {3.40282e+38, 3.40282e+38} @@ -464,7 +468,7 @@ 2 - 45 + 49 @@ -689,7 +693,7 @@ {{350, 212}, {574, 484}} com.apple.InterfaceBuilder.CocoaPlugin {{350, 212}, {574, 484}} - + {196, 240} {{202, 428}, {480, 270}} com.apple.InterfaceBuilder.CocoaPlugin @@ -733,7 +737,7 @@ - 45 + 49 diff --git a/English.lproj/Debugger.xib b/English.lproj/Debugger.xib index 16f3434..f39be13 100644 --- a/English.lproj/Debugger.xib +++ b/English.lproj/Debugger.xib @@ -964,7 +964,7 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ 8223 2 - {{196, 87}, {331, 423}} + {{984, 432}, {400, 400}} -1543503872 Inspector NSPanel @@ -988,7 +988,7 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ 2322 - {333, 168} + {402, 140} @@ -1129,7 +1129,7 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ - 3.330000e+02 + 4.020000e+02 1 @@ -1184,7 +1184,7 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ - {333, 425} + {402, 402} @@ -1216,7 +1216,7 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ 9.456522e-01 - {{-1, -1}, {333, 425}} + {{-1, -1}, {402, 402}} 560 @@ -1224,12 +1224,19 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ - {331, 423} + {400, 400} {{0, 0}, {1440, 878}} {3.40282e+38, 3.40282e+38} InspectorWindow + + + YES + InspectorWindowVisible + + YES + @@ -1566,6 +1573,22 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ 581 + + + visible: values.InspectorWindowVisible + + + + + + visible: values.InspectorWindowVisible + visible + values.InspectorWindowVisible + 2 + + + 583 + @@ -1965,6 +1988,11 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ + + 582 + + + @@ -2145,7 +2173,7 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ com.apple.InterfaceBuilder.CocoaPlugin {{478, 327}, {331, 423}} {{478, 327}, {331, 423}} - + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -2190,7 +2218,7 @@ ELIAAAAAAAgACAAIAAgAAQABAAEAAQ - 581 + 583 diff --git a/Source/AppDelegate.m b/Source/AppDelegate.m index d1e2deb..942234a 100644 --- a/Source/AppDelegate.m +++ b/Source/AppDelegate.m @@ -43,6 +43,7 @@ [NSNumber numberWithInt:9000], @"Port", @"macgdbp", @"IDEKey", [NSNumber numberWithBool:YES], @"BreakpointsWindowVisible", + [NSNumber numberWithBool:YES], @"InspectorWindowVisible", [NSMutableArray array], @"PathReplacements", nil ]; diff --git a/Source/DebuggerController.m b/Source/DebuggerController.m index ae5af5b..02efb08 100644 --- a/Source/DebuggerController.m +++ b/Source/DebuggerController.m @@ -52,6 +52,9 @@ name:kErrorOccurredNotif object:connection ]; + + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"InspectorWindowVisible"]) + [inspector orderFront:self]; } return self; } -- 2.43.5