Best way to catch signals in a Cocoa app
Best way to catch signals in a Cocoa app
- Subject: Best way to catch signals in a Cocoa app
- From: John Clayton <email@hidden>
- Date: Sun, 14 Nov 2004 17:48:26 -0500
Hi,
Let's say you need to do some cleanup (like terminating some spawned
tasks) no matter how your app is quit. So even if someone kills the
process from a terminal, the cleanup still happens. I assume using
signal handlers are the only way to get access to these events (because
handling uncaught exceptions didn't seem to work), but how does one
integrate these into a Cocoa app, i.e. where is the proper place to
implement them, and what is the correct procedure for getting some
object methods called (I know from this list that you can't call ObjC
code directly from a signal handler). Any help is appreciated.
Thanks,
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden