Re: Daemon to Trigger when Certain Apps are Quit
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On 2008 Sep, 17, at 8:47, Quinn wrote: <http://developer.apple.com/technotes/tn/tn2050.html> On 2008 Sep, 17, at 7:41, Philip Aker wrote: Thanks, guys. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... As far as doing this once you're running, I just updated TN2050 to described all of your various options. AFAIK launchd doesn't have any support for this sort of thing, so you'll have to run all the time. Indeed, NSWorkspaceDidTerminateApplicationNotification is what I currently use in my background app. Maybe kqueue with EVFILT_PROC NOTE_EXIT So, either way, if I insist on keeping this feature, I still need to have a continuously-running daemon of some kind. Hmmm. This email sent to site_archiver@lists.apple.com
participants (1)
-
Jerry Krinock