• 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: App startup/shutdown hooks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App startup/shutdown hooks


  • Subject: Re: App startup/shutdown hooks
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 4 Oct 2005 09:39:37 -0600


On Oct 4, 2005, at 9:21 AM, Neil Baylis wrote:

When I run it, the first printout prints fine, and the app runs as
expected. The window comes up and works correctly. When the app exits,
(by closing it from the gui) the second printf never prints. If I put
a breakpoint there, it never hits. This is probably very basic, but..
what's going on here?

NSApplicationMain() will never return.

What is the correct way for me to execute some cleanup code when the
application exits?

<file:///Developer/ADC Reference Library/documentation/Cocoa/ Reference/ApplicationKit/ObjC_classic/Classes/NSApplication.html#// apple_ref/doc/uid/20000012-CACBFGDB>


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ 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: App startup/shutdown hooks
      • From: Neil Baylis <email@hidden>
References: 
 >App startup/shutdown hooks (From: Neil Baylis <email@hidden>)

  • Prev by Date: Bindings "Prepares content" to automatically initialize some fields?
  • Next by Date: IB throws exception with custom control
  • Previous by thread: Re: App startup/shutdown hooks
  • Next by thread: Re: App startup/shutdown hooks
  • Index(es):
    • Date
    • Thread