diff options
Diffstat (limited to 'Source/SPProcessListController.m')
-rw-r--r-- | Source/SPProcessListController.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPProcessListController.m b/Source/SPProcessListController.m index d6b5c186..fdef96bb 100644 --- a/Source/SPProcessListController.m +++ b/Source/SPProcessListController.m @@ -26,6 +26,7 @@ #import "SPProcessListController.h" #import "SPDatabaseDocument.h" #import "SPAlertSheets.h" +#import "SPAppController.h" // Constants static const NSString *SPKillProcessQueryMode = @"SPKillProcessQueryMode"; @@ -77,7 +78,7 @@ static const NSString *SPTableViewIDColumnIdentifier = @"Id"; */ - (void)awakeFromNib { - [[self window] setTitle:[NSString stringWithFormat:@"%@ %@", [[[NSApp delegate] frontDocument] name], NSLocalizedString(@"Server Processes", @"server processes window title")]]; + [[self window] setTitle:[NSString stringWithFormat:@"%@ %@", [[(SPAppController*)[NSApp delegate] frontDocument] name], NSLocalizedString(@"Server Processes", @"server processes window title")]]; [self setWindowFrameAutosaveName:@"ProcessList"]; @@ -647,7 +648,7 @@ static const NSString *SPTableViewIDColumnIdentifier = @"Id"; } // If a match wasn't found then a custom value is set - if (!found) [[items objectAtIndex:([items count] - 1)] setState:NSOnState]; + if (!found) [(NSMenuItem*)[items objectAtIndex:([items count] - 1)] setState:NSOnState]; } /** |