• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: subclassing a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: subclassing a window
      • From: Finlay Dobbie <email@hidden>
References: 
 >Re: subclassing a window (From: "Corey O'Connor" <email@hidden>)

  • Prev by Date: Re: subclassing a window
  • Next by Date: Re: Fastest way to predict bounding box for a string
  • Previous by thread: Re: subclassing a window
  • Next by thread: Re: subclassing a window
  • Index(es):
    • Date
    • Thread