Re: compiler warning for not fully implementing protocol
Re: compiler warning for not fully implementing protocol
- Subject: Re: compiler warning for not fully implementing protocol
- From: "Kyle Sluder" <email@hidden>
- Date: Thu, 31 Jul 2008 22:04:18 -0400
On Thu, Jul 31, 2008 at 7:14 PM, Mark Sanvitale <email@hidden> wrote:
> @interface PortalActionView : PortalTabView <ReadArchiveClient>
>
>
> So, PortalActionView does implement processedArchive: (without declaring it
> in its interface) but the displayCapture method is coming from its super
> class which does declare this method in its public interface, yet the
> compiler complains "method definition for '-displayCapture' not found".
Re-read. You need to specify that PortalActionView implements
-displayCapture in its interface, or else the compiler will complain.
I thought Bill was pretty clear about that. The compiler does not
know that a class implements a protocol unless that class's interface
declares all of the protocol's required methods.
--Kyle Sluder
_______________________________________________
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