Re: Neatly terminating the app
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