• 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: How to adopt a superclass's protocol?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to adopt a superclass's protocol? (From: "K. Darcy Otto" <email@hidden>)
 >Re: How to adopt a superclass's protocol? (From: Michael Vannorsdel <email@hidden>)
 >Re: How to adopt a superclass's protocol? (From: "K. Darcy Otto" <email@hidden>)

  • Prev by Date: Re: Problems with Launchd Daemon
  • Next by Date: How can i connect to database?
  • Previous by thread: Re: How to adopt a superclass's protocol?
  • Next by thread: Re: Link errors against _HIShapeContainsPoint
  • Index(es):
    • Date
    • Thread