• 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
Re: Best way to catch signals in a Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to catch signals in a Cocoa app


  • Subject: Re: Best way to catch signals in a Cocoa app
  • From: Cameron Hayne <email@hidden>
  • Date: Mon, 15 Nov 2004 20:19:13 -0500

On 11/14/04 5:48 PM, "John Clayton" <email@hidden> wrote:

> 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 wrote a sample Cocoa application specifically for demonstrating how to
catch signals in a Cocoa app:
http://hayne.net/MacDev/TestSignals/

--
Cameron Hayne (email@hidden)
Hayne of Tintagel

 _______________________________________________
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: John Clayton <email@hidden>
References: 
 >Best way to catch signals in a Cocoa app (From: John Clayton <email@hidden>)

  • Prev by Date: Re: Fast Screen update
  • Next by Date: [Proposal] On-the-fly NIB localization
  • Previous by thread: Re: Best way to catch signals in a Cocoa app (Or should you?)
  • Next by thread: Re: Best way to catch signals in a Cocoa app
  • Index(es):
    • Date
    • Thread