Re: Protocols with Categories?
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.