I tried signal handling on Panther, Tiger & Leopard. But found that
on Panther & Tiger, it did not work & only worked on Leopard which
is strange. Is that the only solution?
Thanks,
palav
In pre-leopard versions, Activity Monitor was sending an AppleEvent to
all graphical applications (even "background only"). But the apple
event is handle only if the application call -[NSApp run] or if it
installs a custom event handler.
AFAR, Activity Monitor was not able to properly quit some background
application on Tiger and Panther, so (I'm maybe wrong) I think they
decide to change the "quit application" implementation to support a
wider range of applications, but at some cost.
IMHO, The simplest solution will be to add a SIGINT handler in
Leopard, and find a safe way to call -[NSApp terminate:nil] when this
handler is call.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com