Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiler warning for not fully implementing protocol



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >compiler warning for not fully implementing protocol (From: Mark Sanvitale <email@hidden>)
 >Re: compiler warning for not fully implementing protocol (From: Bill Bumgarner <email@hidden>)
 >Re: compiler warning for not fully implementing protocol (From: Mark Sanvitale <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.