• 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: Neatly terminating the app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Neatly terminating the app


  • Subject: Re: Neatly terminating the app
  • From: glenn andreas <email@hidden>
  • Date: Sat, 14 Jan 2006 09:22:05 -0600


On Jan 14, 2006, at 9:18 AM, Mike Abdullah wrote:

Simple question I'm sure, but I couldn't find a definite guide to this.

I have a doc-based app, with a window that is always present (it has nothing to do with the documents themselves, just serves as a starting point). If the user clicks on the Quit button in this window, what method should I use to quit the app, but make sure that the app won't quit if there are any unsaved documents open?

You all but answered the question in your subject - have it work just like the Quit menu item:


[NSApp terminate: nil];



Glenn Andreas                      email@hidden
 <http://www.gandreas.com/> wicked fun!
quadrium | build, mutate, evolve | images, textures, backgrounds, art

_______________________________________________
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: Neatly terminating the app
      • From: Mike Abdullah <email@hidden>
References: 
 >Neatly terminating the app (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Neatly terminating the app
  • Next by Date: WebView can't handle *simple* pages that Safari can???
  • Previous by thread: Neatly terminating the app
  • Next by thread: Re: Neatly terminating the app
  • Index(es):
    • Date
    • Thread