Re: Categories vs. subclassing
Re: Categories vs. subclassing
- Subject: Re: Categories vs. subclassing
- From: email@hidden
- Date: Tue, 26 Oct 2004 15:57:02 +0000
Well I don't know if you would call it a "good" reason, but I plan on using categories for plug-in "extensions" in my app.
Kind of how the third parties used classic mac os extensions to provide and override functions. I'm using categories to provide "extensions" for my base plug-ins and also to override their default behaviors.
Its nice because it means that I can instance my own plug-in objects and get the abilities of any plug-in extensions without doing anything special. Another nice feature is that many extensions (provided they don't conflict - conflict being override the same method(s)) can be applied to the same plug-in so that they can be combined for the best results.
- lee
-------------- Original message --------------
>
> Can anyone give me a good reason to choose one over the other ?
> Or a way to discern which one I need in which case.
> Because I don't quite see the use of categories...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden