• 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
Termination notifications in foundation tool?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Termination notifications in foundation tool?


  • Subject: Termination notifications in foundation tool?
  • From: Luke Evans <email@hidden>
  • Date: Fri, 4 Sep 2009 19:09:32 -0700

OK, mea culpa, this is not strictly about Cocoa, but I'm a member of this list and can see an obvious other list to join to post this (though perhaps someone will enlighten me).

I'm making a 'plain' foundation tool for the first time, though using things like Core Data within.
I need to know when the app/tool is going to terminate (for whatever reason), primarily in order to do a final Core Data save if there are changes to persist, though there may be other things to do.


This sort of thing is easy in Cocoa, and in the distant past I've written Unix apps with signal handlers, which would probably work. However, I'm wondering if there's an in-between here.
Maybe it's sufficient to have a top level exception handler around the code in main(...)?


Cheers

-- Luke

_______________________________________________

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

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: defaultConnection in Snow Leopard
  • Next by Date: Application Design Question
  • Previous by thread: Re: Custom Window not receiving "full" shadow
  • Next by thread: Re: Termination notifications in foundation tool?
  • Index(es):
    • Date
    • Thread