https://developer.apple.com/documentati ... guage=objc
You can find the full source code that will compile in LC 9 here:
https://github.com/trevordevore/lc-maco ... cation.lcb
I'm trying to call `NSRunningApplicationActivateWithOptions()` as follows (2203 is a PID taken from Activity Monitor so adjust accordingly):
Code: Select all
put NSRunningApplicationActivateWithOptions(2203, "ignoring other apps")
Code: Select all
put ObjC_NSRunningApplicationRunningApplicationWithProcessIdentifier(runningApp, pPid) into runningApp
Any ideas?