compiler warning for not fully implementing protocol
compiler warning for not fully implementing protocol
- Subject: compiler warning for not fully implementing protocol
- From: Mark Sanvitale <email@hidden>
- Date: Thu, 31 Jul 2008 11:36:54 -0700
I have a formal protocol that declares two methods. I have a class
that adopts this protocol. This class implements one of the protocol
methods. This class inherits from another class. This super class
actually implements a method matching the signature of the second
method declared in the protocol. Everything runs just fine, however,
the compiler insists something is wrong by warning me "incomplete
implementation of class X", "method definition for '<method-name>'
not found", and class 'X' does not fully implement the 'Y' protocol".
I think the compiler is wrong. Or is this "by design" according to
some strict rule(s) of Objective-C? Am I expected to redefine the
method I inherit from my super class if the method is part of a
protocol I adopt?
Mark Sanvitale
Exbiblio
email@hidden
_______________________________________________
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