Re: terminates app when main window closes

2010-06-18 Thread Angelo Chen
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

Re: terminates app when main window closes

2010-06-18 Thread Kyle Sluder
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

Re: terminates app when main window closes

2010-06-18 Thread Jean-Daniel Dupas
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

Re: terminates app when main window closes

2010-06-18 Thread John Joyce
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

Re: terminates app when main window closes

2010-06-18 Thread Kyle Sluder
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

terminates app when main window closes

2010-06-17 Thread Angelo Chen
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 _