Skip navigation.
 
mlRe: Delegation question
FROM : Enigmarelle Development
DATE : Thu Jan 10 20:42:51 2002

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/


Related mailsAuthorDate
mlDelegation question Martin Kautz Jan 10, 17:14
mlRe: Delegation question Enigmarelle Develo… Jan 10, 20:42