Re: Implementing Quit
Re: Implementing Quit
- Subject: Re: Implementing Quit
- From: Mike Abdullah <email@hidden>
- Date: Fri, 12 May 2006 19:24:32 +0100
In the method that happens when you end the "do you want to save?"
sheet, call [NSApp terminate: self]
Mike.
On 12 May 2006, at 11:01AM, Paolo Bertani wrote:
I have implemented NSApplication delegate applicationShouldTerminate:
If there is no need to save changes it returns YES and the app quits.
Otherwise it runs a "do you want to save?" sheet and returns NO.
If the user dismiss the sheet selecting "Don't save" or "Save" how
do I quit instantaneously the application?
BTW: The app. is single window and I don't have a document controller.
Thank you.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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