UI fixed/changes for macOS Sierra

filter background processing
support for filtering when enter is hit after trying full #keyword
'not found' binary attribute/#keyword
error alert when opening file in Finder fails
skipper dylib/file/network enumeration for kernel task (pid 0x0)
This commit is contained in:
Patrick Wardle
2016-12-04 22:13:40 -10:00
parent 4f23563187
commit b35dd8a625
24 changed files with 980 additions and 408 deletions
+14 -3
View File
@@ -521,6 +521,9 @@ bail:
//path to binary
NSString* path = nil;
//file open error alert
NSAlert* errorAlert = nil;
//for top pane
// ->get task
if(YES != self.isBottomPane)
@@ -549,9 +552,17 @@ bail:
goto bail;
}
//open Finder
// ->will reveal binary
[[NSWorkspace sharedWorkspace] selectFile:path inFileViewerRootedAtPath:@""];
//open item in Finder
// ->error alert shown if file open fails
if(YES != [[NSWorkspace sharedWorkspace] selectFile:path inFileViewerRootedAtPath:@""])
{
//alloc/init alert
errorAlert = [NSAlert alertWithMessageText:[NSString stringWithFormat:@"ERROR:\nfailed to open %@", path] defaultButton:@"OK" alternateButton:nil otherButton:nil informativeTextWithFormat:@"errno value: %d", errno];
//show it
[errorAlert runModal];
}
//bail
bail: