Re: Inheritance question
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