• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Best way to catch signals in a Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Best way to catch signals in a Cocoa app
      • From: Cameron Hayne <email@hidden>
    • Re: Best way to catch signals in a Cocoa app (Or should you?)
      • From: John Clayton <email@hidden>
  • Prev by Date: Re: Execute On-Load
  • Next by Date: Re: Access instance var from NSValueTransformer
  • Previous by thread: NSTextField/View and shadows
  • Next by thread: Re: Best way to catch signals in a Cocoa app (Or should you?)
  • Index(es):
    • Date
    • Thread