• 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: Inheritance question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inheritance question


  • Subject: Re: Inheritance question
  • From: Erik Buck <email@hidden>
  • Date: Fri, 17 Aug 2007 09:04:00 -0700 (PDT)

Implement you subclass of NSWindow like the following and just call -exceptionalClose and -exceptionalOrderOut: at the right times.

  @implementation MYWindow : NSWindow
  {
  }

  - (void)close
  {
     // do something special
     [super close];
  }


  - (void)orderOut:(id)sender
  {
    // do something special
    [super orderOut:sender];
  }


  - (void)exceptionalClose
  {
    [super close];
  }


  - (void)exceptionalOrderOut:(id)sender
  {
    [super orderOut:sender];
  }

  @end

  I really don't mean to cause offense, but you don't seemed to have grasped sufficient basic concepts of object oriented programming in general of Objective-C in particular to be attempting the things you describe.  I recommend that you start with more introductory tutorial projects.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: modifying info dictionary
  • Next by Date: Re: NSWindow behavior
  • Previous by thread: Re: Inheritance question
  • Next by thread: NSWindow behavior
  • Index(es):
    • Date
    • Thread