Calling a super call method from and instance
Calling a super call method from and instance
- Subject: Calling a super call method from and instance
- From: David Alter <email@hidden>
- Date: Thu, 7 May 2009 13:37:22 -0700
In Objective-C 1.0 (not 2.0 ) is there a way to call a super class method if
I have a reference to the class
See bellow
@interface MyClassA : NSObject {
}
-(void) aboutMe ;
@end
@implementation MyClassA
-(void) aboutMe ;
{
NSLog(@"I'm Class A");
}
@end
@interface MyClassB :MyClassA {
}
-(void) aboutMe ;
@end
@implementation MyClassB
-(void) aboutMe ;
{
NSLog(@"I'm Class B");
}
@end
-(void) someMethod:(MyClassB*) myClass
{
//I want to call MyClassB's super of aboutMe. This should output "I'm Class
A"
}
thanks for the help
-dave
_______________________________________________
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