Re: Delegation question
Re: Delegation question
- Subject: Re: Delegation question
- From: Enigmarelle Development <email@hidden>
- Date: Thu, 10 Jan 2002 14:42:51 -0500
On Thursday, January 10, 2002, at 11:14 AM, Martin Kautz wrote:
Hello list.
How Do I quit an application by clicking the close button of it's window
(cocoa app, not document based)?
I know it's done by sort of delegation, but an available source to poke in
it it would be cool.
Regards,
Martin
in your app delegate:
-(BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication
*)application
{
return YES;
}
-john c. warner
enigmarelle development
http://www.enigmarelle.com/