• 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: Terminate on Close
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Terminate on Close


  • Subject: Re: Terminate on Close
  • From: Wade Tregaskis <email@hidden>
  • Date: Thu, 13 Nov 2003 11:26:45 +1100

Another newb question. How do I get an Objective-C application to terminate when the users presses the close button?

Look at the documentation for NSApplication - there's a delegate method which allows you to return whether or not the app should quit when the last window is closed.

Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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: 
 >Terminate on Close (From: Darwin Zins <email@hidden>)

  • Prev by Date: Cocoa daemon
  • Next by Date: Re: Mouse move event
  • Previous by thread: Terminate on Close
  • Next by thread: Re: Terminate on Close
  • Index(es):
    • Date
    • Thread