• 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: How to quit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to quit


  • Subject: Re: How to quit
  • From: David Reed <email@hidden>
  • Date: Tue, 8 Jun 2004 10:05:50 -0400

Mark,


... I want to finish and quit this
application.

...telling the Coca framework I want to quit would be better so I could then,
so something after in my main() proc.
[[NSApplication sharedApplication] terminate:nil] should do what you want in Cocoa. It would probably be better to use the termination notification methods in your app delegate rather than doing it in your main() after termination, if only because it is clearer. You probably couldn't use the AppKit after the NSApplication goes away anyway.

David.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >How to quit (From: Mark Thomas <email@hidden>)

  • Prev by Date: RE: Checksums and best way to get'em
  • Next by Date: Re: How to quit
  • Previous by thread: Re: How to quit
  • Next by thread: Re: How to quit
  • Index(es):
    • Date
    • Thread