mirror of
https://github.com/objective-see/TaskExplorer.git
synced 2026-03-22 07:02:39 +00:00
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:
+14
-3
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user