Re: Inheritance question
Re: Inheritance question
- Subject: Re: Inheritance question
- From: Kai-Mikael Jää-Aro <email@hidden>
- Date: Fri, 17 Aug 2007 13:17:26 +0200
Tony Wroblewski kirjoitti 2007-08-17 kello 13:02:
It doesn't work because you are still sending the message to your
object, even if you cast it. It doesn't work the same as C++, when
you can do virtual methods.
Wouldn't [[[myClassInstance] super] theMethod] work, although its
incredibly ugly
Perhaps the best would be to do
if (specialcondition)
[super theMethod]
else {
normalProcessing...
}
in the child method?
_______________________________________________
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