nsrunningapplication Questions

2

Solved

I wrote this little program which is supposed to print the current frontmost application twice, with a 3-second break in between. void printFrontmostApp() { NSRunningApplication *frontmostApplica...
Koziara asked 28/10, 2015 at 14:5

1

Solved

I'm trying to create a program that will focus a certain application (if it is launched). Here is my code: #import <Cocoa/Cocoa.h> #import <stdio.h> int main() { // activate Firefox ...
Lordinwaiting asked 5/8, 2015 at 17:40

2

GetProcessPID was marked deprecated in OSX 10.9 along with the note: Use the processIdentifier property of the appropriate NSRunningApplication object. The problem is the constructing class m...
Tradition asked 18/3, 2014 at 17:23

2

Solved

I have an AppleEventDescriptor where I need to get the sending application's bundle identifier. The Apple Event contains a typeProcessSerialNumber that can be coerced into a ProcessSerialNumber. T...
Hereafter asked 24/6, 2014 at 19:31

1

Solved

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 whether Safari is running for "user1" but I am unable...

1

I want to get the window list for a running application. I can get the running application list from [[NSWorkspace sharedWorkspace] runningApplications], but the window list is only available on NS...
Archdeaconry asked 7/12, 2012 at 9:57

2

I'm trying to get a list of the most recently used applications. NSWorkspace returns a list of active applications and I can sort them on a few options using NSRunningApplication. see list below: ...
Heimer asked 8/6, 2010 at 7:48
1

© 2022 - 2024 — McMap. All rights reserved.