Re: Subclassing Catch-22
Re: Subclassing Catch-22
- Subject: Re: Subclassing Catch-22
- From: Dan Treiman <email@hidden>
- Date: Tue, 26 Apr 2005 18:40:19 -0500
In respects to the original question, if you really want to get to an
overridden method you could cast the target as (MySuperClass *),
where MySuperClass is the name of the class whose method is
overridden. This is really a C++ish sort of thing to do tho..
-DT
On Apr 26, 2005, at 6:03 PM, Marco Scheurer wrote:
On Apr 27, 2005, at 00:30, Todd Ransom wrote:
If I augment the return from the superclass, how do I know whether
to call my implementation or super's?
You don't "call super's implementation". You don't have to know.
You send a message to self, and it will do the right thing: all the
keys defined for each of your subclass will be returned.
marco
Marco Scheurer
Sen:te, Lausanne, Switzerland http://www.sente.ch
_______________________________________________
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
_______________________________________________
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