• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: compiler warning for not fully implementing protocol
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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>)

  • Prev by Date: Getting the id of a button in a NSCollectionView
  • Next by Date: Re: Making child windows move with their parents
  • Previous by thread: Re: compiler warning for not fully implementing protocol
  • Next by thread: Re: compiler warning for not fully implementing protocol
  • Index(es):
    • Date
    • Thread