My preference pane contains in the Resources folder a "helper"
application. I've got a communication between them going with
distributed objects. The preference pane needs to be able to open and
close the helper (similar to the Growl and MySQL preference panes),
and see if it is currently running. I can use [[NSWorkspace
sharedWorkspace] launchedApplications] and see if any of those match
the file path of the helper app's bundle. I can launch the helper app
with [[NSWorkspace sharedWorkspace] openFile:]. I can monitor whether
or not it's open with notifications... Where I'm stuck is how to close
it. There doesn't seem to be a (recommended) way to access its
NSApplication instance to terminate it. How can I close the helper
app?
It's not a Cocoa solution, but I use this to see if a process is
running: