v 1.0.0 RC

improved filtering (network connections etc)
 	improved UI (flagged files red in info window, centering components, etc)
	code cleanup (moved init XPC connection into AppDelegate, etc)
	error msgs now syslog'd
	extra sanity checks, etc
	fixed logic issue w/ refreshing & filtering
This commit is contained in:
Patrick Wardle
2015-08-01 12:46:24 -07:00
parent 5ad9582b6f
commit b41a9642a9
26 changed files with 478 additions and 575 deletions
+9 -6
View File
@@ -9,9 +9,10 @@
#import "Utilities.h"
#import "AppDelegate.h"
#import "RequestRootWindowController.h"
#import <syslog.h>
@implementation RequestRootWindowController
@@ -123,7 +124,7 @@
if(errAuthorizationSuccess != osStatus)
{
//err msg
NSLog(@"ERROR: AuthorizationCreate() failed with %d", osStatus);
syslog(LOG_ERR, "OBJECTIVE-SEE ERROR: AuthorizationCreate() failed with %d", osStatus);
//bail
goto bail;
@@ -134,7 +135,7 @@
if(errAuthorizationSuccess != osStatus)
{
//err msg
NSLog(@"ERROR: AuthorizationExecuteWithPrivileges() failed with %d", osStatus);
syslog(LOG_ERR, "OBJECTIVE-SEE ERROR: AuthorizationExecuteWithPrivileges() failed with %d", osStatus);
//set result msg
[self.statusMsg setStringValue: [NSString stringWithFormat:@"error: failed with %d", osStatus]];
@@ -169,7 +170,7 @@
if(errAuthorizationSuccess != osStatus)
{
//err msg
NSLog(@"ERROR: AuthorizationExecuteWithPrivileges() failed with %d", osStatus);
syslog(LOG_ERR, "OBJECTIVE-SEE ERROR: AuthorizationExecuteWithPrivileges() failed with %d", osStatus);
//set result msg
[self.statusMsg setStringValue: [NSString stringWithFormat:@"error: failed with %d", osStatus]];
@@ -187,9 +188,11 @@
//no exit
self.shouldExit = NO;
//start enumerating tasks
[((AppDelegate*)[[NSApplication sharedApplication] delegate]) exploreTasks];
//call back into app delegate
// ->kick off task enum, etc
[((AppDelegate*)[[NSApplication sharedApplication] delegate]) go];
//bail
bail: