performSelector and subclassing
performSelector and subclassing
- Subject: performSelector and subclassing
- From: Koen van der Drift <email@hidden>
- Date: Sun, 14 Nov 2004 14:26:56 -0500
Hi,
In the subclasses I have this line:
temp = [MySubclass performSelector: NSSelectorFromString( myRef
)];
I would like to move that line up to the super class. What happens now
is that performSelector is called with MySuper, instead of MySubclass
(which is what I want to happen).
I tried:
temp = [[self class] performSelector: NSSelectorFromString(
myRef )];
but got this warning from the compiler: `Class' may not respond to
`+performSelector:'
Is there a way to accomplish this?
thanks,
- Koen.
_______________________________________________
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