Find out which app launched my cocoa app - macos

I have been searching all around for a way to check which app did launch my cocoa app.
It seems I cannot use NSWorkspaceDidDectivateApplicationNotification because it starts tracking after the app was launched. Do someone know how to do this? The app in question is a status bar app, not sure if that makes any difference.

Related

Deploy Application iOS not starting in Xamarin

I'm trying to create an app in Xamarin. On the Android side everything works fine. However when I deploy ios the app doesn't launch. It doesn't give an error or anything, I just get a response like this. I'm a bit confused about it.
Application it automatically stops. I don't know how to solve it. Ask for help. Thanks

Electron app not working on Windows

I have an electron app I develop on MacOS and build for Windows. I can properly install the .exe that's generated from electron-builder on to Windows.
When I run the app on Windows, I get a spinning loader for 1-2 sec. and then nothing happens. The app, when running properly, shows an icon in the task bar and opens a browser window for the user to login.
I'm using electron-log, but nothing is printed to the logs. It seems like the app is dying before it can start. I'm looking through Event Viewer and don't see anything obvious. I feel like I'm missing something and don't have a great way to understand what's happening.
Any suggestions on where to look on Windows 10 to understand why an electron app isn't doing anything?

Pebble: What does the onlyShownOnCommunication in appinfo.json metadata do?

In CloudPebble, there is a setting for App Visibility:
What does "Only Visible When Companion App Running" mean exactly? Does it mean when the iOS/Android companion app isn't running, then the Pebble watchapp doesn't show up in the app list on the Pebble?
I tried to look for information on the App Metadata docs page, https://developer.pebble.com/guides/pebble-apps/app-structure/app-metadata/, but it's broken...
I tried the setting on a watchapp I have that has an iOS companion app, and the setting doesn't seem to do anything at all. When I forcequit my iOS app, the watchapp is still listed in the Pebble app list.
This metadata item causes the watch app to be hidden when the phone app can't communicated with the watch, and to be shown when it can. The reason it stays open is because apps that use the new PebbleKit on iOS are allowed to continue communicating over BLE, even when force closed.

Why isn't my Cocoa app visible while debugging?

I'm an experienced iOS developer trying to develop my first Cocoa app for OSX.
When the app hits my breakpoints, the app window is no longer visible. Why not? I see the app icon in the dock, but it doesn't become visible when I click on it.
Is there a way to change this or a workaround? I'd like to see the state of my app as I debug. I'm guessing I'm not the only one.
I'm using Xcode 6 beta 6.

Any way for a sandboxed OS X app to intercept keystrokes?

So I've used Dave Delong's brilliant code here to intercept keystrokes in OS X without my app needing to be in focus, unfortunately my app crashes when I try to sandbox it with the message 'deny hid-control' in the console.
A little bit of digging turns up that as of a year ago this wasn't possible, but has anything changed since then? Or does this mean that my app can't go in the Mac App Store since it's dependent on being able to intercept keystrokes? Is there an entitlement that I'm just missing out on here?

Resources