[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quitting application upon closing a window
From: |
Chris B. Vetter |
Subject: |
Re: Quitting application upon closing a window |
Date: |
Tue, 3 Jun 2003 18:20:13 -0700 |
On Wed, 4 Jun 2003 03:40:12 +0300
Christopher Culver <crculver@users.sourceforge.net> wrote:
> The application I'm currently working on is essentially useless if its
> main window isn't present. How do I make it that the application quits
> automatically once the window has been closed, as by default once the
> window is closed the menu still hangs there until one chooses "Quit".
In your application's delegate, add
- (BOOL) applicationShouldTerminateAfterLastWindowClosed:
(NSApplication *) app
{
return YES;
}
--
Chris