Re: applicationShouldTerminateAfterLastWindowClosed
Re: applicationShouldTerminateAfterLastWindowClosed
- Subject: Re: applicationShouldTerminateAfterLastWindowClosed
- From: "M. Uli Kusterer" <email@hidden>
- Date: Wed, 11 Feb 2004 02:08:27 +0100
At 2:44 Uhr +0000 09.02.2004, Steve Palmer wrote:
Out of curiosity, how do you use this delegate? The documentation is
not very clear. I set [NSApp setDelegate:self] in my app controller
and implemented this delegate, but the delegate never gets called
after I close the last visible window. What could I be missing?
I usually just instantiate a copy of my controller/delegate object in
MainMenu.nib, hook it up to the app's "delegate" (by control-dragging
from the "File's Owner" to the delegate object) and that's it.
Note that, of course, that method has to be named
applicationShouldTerminateAfterLastWindowClosed:, or it won't be
called. I merely used "foo" to make it easier to read.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.