• 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: Protocols with Categories?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Protocols with Categories?


  • Subject: Re: Protocols with Categories?
  • From: Ondra Cada <email@hidden>
  • Date: Sat, 1 Jun 2002 12:51:23 +0200

On Saturday, June 1, 2002, at 12:38 , Ondra Cada wrote:

I would like to add support for a formal protocol to a class using a category. Is there any way to declare that the class now conforms to the formal protocol using categories? I know I could just implement the protocol, but I need the class to respond to conformsTo: properly as well.

Ammm... what then about overriding the conformsTo: method appropriately?

DON'T!

Sorry, but I misunderstood the question -- I though you are doing something quite nasty. In this case, what mmalc said is exactly the way to go.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: Protocols with Categories? (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Protocols with Categories?
  • Next by Date: Re: Protocols with Categories?
  • Previous by thread: Re: Protocols with Categories?
  • Next by thread: Re: Protocols with Categories?
  • Index(es):
    • Date
    • Thread