Re: super respondsToSelector
Re: super respondsToSelector
- Subject: Re: super respondsToSelector
- From: Bill Bumgarner <email@hidden>
- Date: Fri, 30 May 2008 23:55:16 -0700
On May 30, 2008, at 11:43 PM, Jens Alfke wrote:
If you actually want to ask a question of your class's superclass,
you have to do so directly:
[[[self class] superclass] instancesRespondToSelector: aSelector]
Well... yeah... you *can* do that.
But *don't do that*. (And I know Jens knows better -- I'm just
pointing something out).
Any code that relies upon *skipping* super's implementation of
something to get something done is just asking for trouble.
b.bum
_______________________________________________
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