site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Sep 17, 2008, at 1:05 PM, Jerry Krinock wrote: <http://developer.apple.com/technotes/tn/tn2050.html> Philip Aker echo astwta@lvpc.dslh@nl | tr a-z@. p-za-o.@ Democracy: Two wolves and a sheep voting on lunch. _______________________________________________ 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... On 2008 Sep, 17, at 8:47, Quinn wrote: 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. On 2008 Sep, 17, at 7:41, Philip Aker wrote: 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. I think so. My situation is not the quite the same, so I'm keeping the kqueue stuff as a separate tool in my application bundle and using CFNotifs for communication. Thanks for TN2050 Quinn, it's nice to be aware of the various options. This email sent to site_archiver@lists.apple.com