Re: Daemon to Trigger when Certain Apps are Quit
Re: Daemon to Trigger when Certain Apps are Quit
- Subject: Re: Daemon to Trigger when Certain Apps are Quit
- From: Philip Aker <email@hidden>
- Date: Wed, 17 Sep 2008 18:38:07 -0700
On Sep 17, 2008, at 1:05 PM, Jerry Krinock wrote:
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.
<http://developer.apple.com/technotes/tn/tn2050.html>
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.
Philip Aker
echo email@hidden@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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden