From 2a6afa507a937269caedde9f78abab6d3a9ae519 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 1 Dec 2008 10:38:39 -0500 Subject: [PATCH] Remove -[DebuggerController setStatus:] * Source/DebuggerController.h: Header updates * Source/DebuggerController.m: (awakeFromNib): Set the window's title and remove the call to [setStatus:] (setStatus:): Removed (setError:): Remove call to [setStatus:] * Source/GDBpConnection.m: (initWithPort:session:): Set the status to "Connecting" --- Source/DebuggerController.h | 1 - Source/DebuggerController.m | 13 +------------ Source/GDBpConnection.m | 2 ++ 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/Source/DebuggerController.h b/Source/DebuggerController.h index c0fb046..2d87323 100644 --- a/Source/DebuggerController.h +++ b/Source/DebuggerController.h @@ -42,7 +42,6 @@ - (void)resetDisplays; -- (void)setStatus:(NSString *)aStatus; - (void)setError:(NSString *)anError; - (void)setRegister:(NSXMLDocument *)reg; diff --git a/Source/DebuggerController.m b/Source/DebuggerController.m index 212cf0b..28f90a0 100644 --- a/Source/DebuggerController.m +++ b/Source/DebuggerController.m @@ -71,8 +71,8 @@ */ - (void)awakeFromNib { - [self setStatus:@"Connecting"]; [[self window] setExcludedFromWindowsMenu:YES]; + [[self window] setTitle:[NSString stringWithFormat:@"GDBp @ %@:%d/%@", [connection remoteHost], [connection port], [connection session]]]; [sourceViewer setDelegate:self]; [stackArrayController setSortDescriptors:[NSArray arrayWithObject:[[[NSSortDescriptor alloc] initWithKey:@"index" ascending:YES] autorelease]]]; } @@ -111,23 +111,12 @@ [[sourceViewer textView] setString:@""]; } -/** - * Sets the status and clears any error message - */ -- (void)setStatus:(NSString *)aStatus -{ - [errormsg setHidden:YES]; - [statusmsg setStringValue:aStatus]; - [[self window] setTitle:[NSString stringWithFormat:@"GDBp @ %@:%d/%@", [connection remoteHost], [connection port], [connection session]]]; -} - /** * Sets the status to be "Error" and then displays the error message */ - (void)setError:(NSString *)anError { [errormsg setStringValue:anError]; - [self setStatus:@"Error"]; [errormsg setHidden:NO]; } diff --git a/Source/GDBpConnection.m b/Source/GDBpConnection.m index c06f6f8..408a529 100644 --- a/Source/GDBpConnection.m +++ b/Source/GDBpConnection.m @@ -49,6 +49,8 @@ NSString *kErrorOccurredNotif = @"GDBpConnection_ErrorOccured_Notification"; [socket setDelegate:self]; [socket connect]; + self.status = @"Connecting"; + [[BreakpointManager sharedManager] setConnection:self]; } return self; -- 2.22.5