From 7139e6322ba2b8cea3c0777d7147950b55b33004 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 6 Feb 2009 15:33:44 -0500 Subject: [PATCH] The breakpoints window will now remember if it was opened or closed * English.lproj/Breakpoints.xib: Bind the visible status to NSUserDefaults * Source/AppDelegate.m: (load): Add the default value for BreakpointsWindowVisible stdudef * Source/BreakpointController.m: (init): Only order the window back if BreakpointsWindowVisible is true --- CHANGES | 2 ++ English.lproj/Breakpoints.xib | 36 +++++++++++++++++++++++++++++++---- Source/AppDelegate.m | 7 ++++++- Source/BreakpointController.m | 3 ++- 4 files changed, 42 insertions(+), 6 deletions(-) diff --git a/CHANGES b/CHANGES index 61641f3..98f1626 100644 --- a/CHANGES +++ b/CHANGES @@ -13,6 +13,8 @@ connection is made variable viewer - New: Selecting different stack frames will now show the variables for that frame, as opposed to only showing the current frame's variables +- New: The breakpoints window will now remember its visible state across +application launches 1.1.2 diff --git a/English.lproj/Breakpoints.xib b/English.lproj/Breakpoints.xib index db023d5..bae74e5 100644 --- a/English.lproj/Breakpoints.xib +++ b/English.lproj/Breakpoints.xib @@ -2,10 +2,10 @@ 1050 - 9F33 + 9G55 672 - 949.34 - 352.00 + 949.43 + 353.00 YES @@ -335,6 +335,13 @@ YES YES + + + YES + BreakpointsWindowVisible + + YES + @@ -443,6 +450,22 @@ 42 + + + visible: values.BreakpointsWindowVisible + + + + + + visible: values.BreakpointsWindowVisible + visible + values.BreakpointsWindowVisible + 2 + + + 45 + @@ -618,6 +641,11 @@ + + 43 + + + @@ -705,7 +733,7 @@ - 42 + 45 diff --git a/Source/AppDelegate.m b/Source/AppDelegate.m index db3a2d5..1408f88 100644 --- a/Source/AppDelegate.m +++ b/Source/AppDelegate.m @@ -39,7 +39,12 @@ { NSAutoreleasePool* pool = [NSAutoreleasePool new]; - NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithInt:9000], @"Port", @"macgdbp", @"IDEKey", nil]; + NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys: + [NSNumber numberWithInt:9000], @"Port", + @"macgdbp", @"IDEKey", + [NSNumber numberWithBool:YES], @"BreakpointsWindowVisible", + nil + ]; [[NSUserDefaults standardUserDefaults] registerDefaults:dict]; diff --git a/Source/BreakpointController.m b/Source/BreakpointController.m index 16e5eeb..0b80f3a 100644 --- a/Source/BreakpointController.m +++ b/Source/BreakpointController.m @@ -30,7 +30,8 @@ if (self = [super initWithWindowNibName:@"Breakpoints"]) { manager = [BreakpointManager sharedManager]; - [[self window] orderBack:nil]; + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"BreakpointsWindowVisible"]) + [[self window] orderBack:nil]; } return self; } -- 2.22.5