discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: close application from title bar control - close


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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]