Questions tagged [nsrunningapplication]
44 questions
0
votes
0 answers
How do i fix the output when running the code. I don't see any mistakes
When i run this code it doesn't display as i wish to be displayed. Don't mind the "//" it's in norwegian. Anyway when i run this code it works until i print the receipt it prints pizza and kebab too even if i just typed 1 or 2 i don't understand.…
0
votes
0 answers
How to hihglight or focus the active application into MacOS using Swift
I'm looking something similar than HazeOver, Focus and other apps that helps to focus on the active application dimming or tinting with other color the not actives, but I'm trying to do it by my own using swift 5.7 on MacOS app but I do not find how…

Daniel Atik
- 29
- 4
0
votes
1 answer
How to hide window of UIAgent process with cocoa
I have an UIAgent application with one window. I want to hide/show it from another application.How do I do it with cocoa? Seems like hide/unhide methods of NSRunningApplication doesn't affect UIAgent processes.
Thanks in advance

Nava Carmon
- 4,523
- 3
- 40
- 74
0
votes
1 answer
Inject keyboard event into NSRunningApplication immediately after foregrounding it
I am trying to bring to foreground a NSRunningApplication* instance, and inject a keyboard event.
NSRunningApplication* app = ...;
[app activateWithOptions: 0];
inject_keystrokes();
... fails to inject keyboard events, but:
NSRunningApplication*…

P i
- 29,020
- 36
- 159
- 267
0
votes
0 answers
NSRunningApplication unhide does not unminize the application
After using [NSRunningApplication unhide] the window of application does not unminimize. If I use[NSRunningApplication activateWithOptions: NSApplicationActivateIgnoringOtherApps] only application's menu appears on top. Also, if I manually hide…

Xerxzes
- 11
- 1
0
votes
0 answers
Android user activity log
I want to make an android service that will keep running in the background and track which apps the user has used and how many times he used the app. e.g
AppName : Start Time : Stop Time
WhatsApp :10:30 AM : 10:50 AM
Chrome :12:00 PM :…

Muhammad Qamar Iqbal
- 313
- 3
- 10
0
votes
2 answers
Daily timer to automatically run a macro
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 does not work automatically. I have to manually run the macro to get the message box to pop-up. Any…

Jeff
- 7
- 4
- 6
0
votes
1 answer
Access any apps bundle identifier
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 to get the bundle identifier, and create an NSRunningApplication instance from it…

Minebomber
- 1,209
- 2
- 12
- 35
0
votes
0 answers
NSRunningApplication memory issue
I've noticed a significant memory usage having the following function executed by a timer:
_timer = [NSTimer scheduledTimerWithTimeInterval:0.01
target:self
…

Alexey Kvasov
- 211
- 2
- 4
0
votes
1 answer
Getting NSRunningApplication object from pid
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 converting pid to NSRunningApplication and then use interface isActive.
My question is how can I…

Sanich
- 1,739
- 6
- 25
- 43
0
votes
1 answer
OS X Login helper app thinks app is already running
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 already an instance of the app running at login, the helper app does not launch a second instance of the…

narner
- 2,908
- 3
- 26
- 63
0
votes
0 answers
error when running application
i get this answer when I'm trying to run my application both on my iphone and in simulator.
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_AppDelegate", referenced from:
objc-class-ref in main.o
ld: symbol(s) not found for…

Andy
- 175
- 2
- 3
- 11
0
votes
0 answers
Keep my app as responder while calling activateWithOptions:NSApplicationActivateIgnoringOtherApps
I am making a vim-style "window manager" that takes text input, much like Alfred or Spotlight in Mavericks (in a floating panel).
The problem I'm having is when I call activateWithOptions: on a running application it steals focus from my window. I…

hannesr
- 449
- 5
- 12
0
votes
3 answers
Find user who launched NSRunningApplication
How can I retrieve this info? Given a NSRunningApplication instance, I need to know who launched it. Activity Monitor shows this info.

user732274
- 1,069
- 1
- 12
- 28