Re: Categories, Protocols, Delegates and ToolTips
Re: Categories, Protocols, Delegates and ToolTips
- Subject: Re: Categories, Protocols, Delegates and ToolTips
- From: Malte Tancred <email@hidden>
- Date: Wed, 19 Jun 2002 18:20:31 +0200
On wednesday, june 19, 2002, at 05:41 , Paul Cezanne wrote:
If you implement in a category methods that already exist, your
implementation will replace the original, which could be risky.
why? As long as I call super I should be ok, no? (Ok, I can see how I
might do stuff that would be "bad" but since I am adding functionality
seperate from the control, I think I am ok here.)
It's risky because the original method is replaced. A category is not a
subclass thus the original implementation cannot be reached by calling
super.
Cheerio,
Malte
_______________________________________________
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.