RE: subclassing a window
RE: subclassing a window
- Subject: RE: subclassing a window
- From: "Lars Elden" <email@hidden>
- Date: Tue, 7 Feb 2006 01:23:59 +0100
Corey,
> I'm confused, can you tell us a bit more about what you are
> trying to accomplish? The end goal of what you are trying to
> do perhaps?
>
> For starters, what do you mean by "subclassing a window"? Do you mean:
> - Subclass NSWindow
yes. Is this a right code ?
@interface Window : NSWindow
{
}
- ( void ) windowWillClose : ( NSNotification * ) notification; @end
@implementation Window
- ( void ) windowWillClose : ( NSNotification * ) notification
{
NSRunAlertPanel( @"windowWillClose", @"event", @"OK", NULL, NULL );
// [ NSApp terminate : self ];
}
@end
Is windowWillClose called when the red button on the window is clicked ?
thanks,
Lars
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden