• 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: John Clayton <email@hidden>
  • Date: Mon, 15 Nov 2004 21:55:07 -0500

Thanks gentlemen, that should put me on the right track.  Much obliged.

J

On Nov 15, 2004, at 8:19 PM, Cameron Hayne wrote:

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

  • Prev by Date: newbie memory question
  • Next by Date: Question about NSImage and NSImageView
  • Previous by thread: Re: Best way to catch signals in a Cocoa app
  • Next by thread: Re: Best way to catch signals in a Cocoa app
  • Index(es):
    • Date
    • Thread