Re: terminates app when main window closes
Re: terminates app when main window closes
- Subject: Re: terminates app when main window closes
- From: Kyle Sluder <email@hidden>
- Date: Fri, 18 Jun 2010 00:02:38 -0700
On Thu, Jun 17, 2010 at 11:41 PM, Angelo Chen
<email@hidden> 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, possible? Thanks,
Non-document-based apps typically don't do this.
That said, look at -applicationShouldTerminateAfterLastWindowClosed:
in the NSApplicationDelegate protocol.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden