On 7 Dec 2011, at 12:45 AM, Rajendran P wrote:
> My problem is that applicationWillTerminate is not being invoked when my
> launch agent is manually unloaded . My application is uielement with out
> dock entry . I am able to do a signal handling , low level unix signal
> handling like sigkill , sighup etc .
What makes you believe that killing a process through launchctl calls AppKit
methods that propagate nicely to applicationWillTerminate:? "man 5
launchd.plist" says it sends SIGTERM, which I don't believe AppKit intercepts
(maybe it would be nice if it did); and after a delay, SIGKILL, which AppKit,
I'm pretty sure, does not intercept.
"Creating Launch Daemons and Agents" advises you to provide a SIGTERM handler,
and doesn't mention AppKit termination at all.
— F
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]