|
From: | Nikolaus Waxweiler |
Subject: | Re: close application from title bar control - close |
Date: | Wed, 13 Sep 2006 18:36:33 +0200 |
User-agent: | Opera Mail/9.01 (FreeBSD) |
but I suppose you could write code to observe NSWindowWillCloseNotification and terminate the application when you receive it.
Copy and paste: @implemenation TheDelegateOfTheWindow [...] - (void) windowWillClose: (NSNotification*)notification {//[NSApp terminate:self]; // XXX: mutex-something -> bus error/core dump [NSApp stop:self]; // apparently frees the autorelease pool, careful.
} @end
[Prev in Thread] | Current Thread | [Next in Thread] |