mirror of
https://github.com/objective-see/TaskExplorer.git
synced 2026-03-22 07:02:39 +00:00
-dark mode -skip dylib enumeration for launchd (Apple bug) -sentry.io error reporting -update check (automatic & via menu) -friends of obj-see
71 lines
1.2 KiB
Objective-C
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
|