Know if an application is still running
In my current INIT, I need to find out when another app has quit, but I can't depend on apple events being sent to give this information. Is there another way to do this? I tried patching ExitToShell but this doesn't always get called. Maybe someone knows of an OS routine that is the complement of InitZone--one that destroys the heap zone on quit.
I'd use the process manager and check the running processes every once in a while. See jonathan's