Re: Neatly terminating the app
Re: Neatly terminating the app
- Subject: Re: Neatly terminating the app
- From: Mike Abdullah <email@hidden>
- Date: Sat, 14 Jan 2006 16:00:57 +0000
OK, now I really wish I hadn't made slight fool of myself and just
looked at the Quit menu connection - sorry people!
And thanks, Glenn!
Mike.
On 14 Jan 2006, at 15:22, glenn andreas wrote:
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