Re: How to adopt a superclass's protocol?
Re: How to adopt a superclass's protocol?
- Subject: Re: How to adopt a superclass's protocol?
- From: Paul Sargent <email@hidden>
- Date: Tue, 29 Apr 2008 09:51:06 +0100
On 29 Apr 2008, at 04:22, K. Darcy Otto wrote:
First, I still get the warning that the superclass "may not respond"
to the method (and to be sure, it is only implemented in the
subclass, but the superclass calls it after a conformsToProtocol:
check).
Sounds like the way things a decomposed into classes could use some
rethinking, but you could [instanceB performSelector:] to call the
method, and it wouldn't be checked by the compiler.
Messy if it's a lot of code though. Only really suitably if it's a
single call.
_______________________________________________
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