I am writing a sandboxed macOS application in Objective-C / Swift. I am interested in terminating other applications programmatically. In Cocoa, there ...
I am writing a sandboxed macOS application in Objective-C / Swift. I am interested in terminating other applications programmatically. In Cocoa, there ...
In my macOS Objective-C application, I have created a subclass of NSMutableSet. What I want to achieve is a NSMutableSet that does not use isEqual: as ...
I am trying to bring to foreground a NSRunningApplication* instance, and inject a keyboard event. ... fails to inject keyboard events, but: ... ...
By using runningApplications of NSWorkspace, it is possible to get a list of running apps on Mac OS as NSRunningApplication objects, and from this get ...
Building a macOS app that gets the currently active NSRunningApplication. After that, I'm just trying to terminate the application using It's no ...
I want to display a list of all running application names. Issue: It doesn't add an app that is running after the function is called. Therefore, it d ...
I am trying to run a macro each day at 9am. I am trying to use the OnTime application and have tested the macro to launch at a specific time but it do ...
For my app, I have the user choose the path for a specific application of their computer. From that path (i.e. /Applications/Itunes.app) I would like ...
I'd like to know whether anyone has a suggestion for an alternative to using runningApplications, as something like the following appears to be leakin ...
I want my application to know which all apps are currently running and show in a table. In table it will show all running apps names with a button bes ...
I wrote this little program which is supposed to print the current frontmost application twice, with a 3-second break in between. When I ran this p ...
I'm trying to create a program that will focus a certain application (if it is launched). Here is my code: When I run this, it prints "failed to ac ...
I'm a very beginner in Objective-c so i would appreciate your help... I need to check if some PID is a PID of active application. I want to do it by c ...
I'm working on implementing a helper app to launch a main, non-sandboxed app upon user login. I want to make sure that, in the event there is alread ...
Is there a way to filter the list of applications given by [NSWorkspace runningApplications] to hide all daemons, etc short of manually checking each ...
I'm using Xcode 5.1.1 on OSX 10.9.4 to debug a Cocoa + OpenGL application. So far I've only ever run my app under the Xcode debugger. Last week I exit ...
I have an AppleEventDescriptor where I need to get the sending application's bundle identifier. The Apple Event contains a typeProcessSerialNumber tha ...
GetProcessPID was marked deprecated in OSX 10.9 along with the note: Use the processIdentifier property of the appropriate NSRunningApplication ob ...
How can I retrieve this info? Given a NSRunningApplication instance, I need to know who launched it. Activity Monitor shows this info. ...
Use case: I login as "user1" and launch Safari, then I click "user1" on top-right corner and switch user to "user2". Now, I am trying to detect whethe ...