super respondsToSelector
super respondsToSelector
- Subject: super respondsToSelector
- From: Russ McBride <email@hidden>
- Date: Fri, 30 May 2008 23:22:41 -0700
Anyone want to take a stab at explaining to me as thoroughly as
possible why
[super respondsToSelector: aSelector]
doesn't actually do what it looks like it should do?
Bonus points if you can explain why I can override the
respondsToSelector:(SEL)aSelector method in my object and as long as I
include the above line at the end of my overridden version my object
reports back correctly that the object serves as a delegate and the
delegate methods get called appropriately.
It seems like either an infinite loop should occur if
respondsToSelector is really being called on self, or it should return
NO if it's called on super, in which case my delegate method in self
should never get called.
Puzzled.
_______________________________________________
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