Files
TaskExplorer/ResultsWindowController.m
T
Patrick Wardle f6264d83b7 mojave compatibility
-dark mode
 -skip dylib enumeration for launchd (Apple bug)
 -sentry.io error reporting
 -update check (automatic & via menu)
 -friends of obj-see
2018-12-06 21:04:36 -10:00

71 lines
1.2 KiB
Objective-C

//
// PrefsWindowController.m
// TaskExplorer
//
// Created by Patrick Wardle on 2/6/15.
// Copyright (c) 2015 Objective-See, LLC. All rights reserved.
//
#import "Utilities.h"
#import "AppDelegate.h"
#import "ResultsWindowController.h"
@implementation ResultsWindowController
@synthesize details;
@synthesize detailsLabel;
//automatically called when nib is loaded
// ->center window
-(void)awakeFromNib
{
//center
[self.window center];
}
//automatically invoked when window is loaded
// ->set to white
-(void)windowDidLoad
{
//super
[super windowDidLoad];
//no dark mode?
// make window white
if(YES != isDarkMode())
{
//make white
self.window.backgroundColor = NSColor.whiteColor;
}
//set details
self.detailsLabel.stringValue = self.details;
return;
}
//automatically invoked when user clicks 'OK'
// ->close window
-(IBAction)close:(id)sender
{
//close
[[self window] close];
return;
}
//automatically invoked when window is closing
// ->make ourselves unmodal
-(void)windowWillClose:(NSNotification *)notification
{
//make un-modal
[[NSApplication sharedApplication] stopModal];
return;
}
@end