Thanks, applicationShouldTerminateAfterLastWindowClosed works.
Now I'd like to prompt user if he really wants to quit, if not, return NO, that
seems working as well.
--- 2010年6月18日 星期五,Kyle Sluder 寫道﹕
寄件人: Kyle Sluder
主題: Re: terminates app when main window closes
收件人: "Angelo Ch
On Jun 18, 2010, at 3:51 AM, Jean-Daniel Dupas wrote:
>
> On Jun 18, 2010, at 2:02 AM, Kyle Sluder wrote:
>
>> On Thu, Jun 17, 2010 at 11:41 PM, Angelo Chen
>> wrote:
>>> I have a non document based application, I quit the app by sending
>>> terminate to NSApplication(file owner). if I close
On Jun 18, 2010, at 2:02 AM, Kyle Sluder wrote:
> On Thu, Jun 17, 2010 at 11:41 PM, Angelo Chen
> wrote:
>> I have a non document based application, I quit the app by sending terminate
>> to NSApplication(file owner). if I close the main window, application will
>> not be closed, what I'd like
On Jun 18, 2010, at 2:02 AM, Kyle Sluder wrote:
> On Thu, Jun 17, 2010 at 11:41 PM, Angelo Chen
> wrote:
>> I have a non document based application, I quit the app by sending terminate
>> to NSApplication(file owner). if I close the main window, application will
>> not be closed, what I'd like
On Thu, Jun 17, 2010 at 11:41 PM, Angelo Chen
wrote:
> I have a non document based application, I quit the app by sending terminate
> to NSApplication(file owner). if I close the main window, application will
> not be closed, what I'd like is, when user close the main window, application
> also
Hi,
I have a non document based application, I quit the app by sending terminate to
NSApplication(file owner). if I close the main window, application will not be
closed, what I'd like is, when user close the main window, application also
terminates, possible? Thanks,
Angelo
_