• 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: Categories vs. subclassing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: ADC TV w/ ADC Select
  • Next by Date: Re: Help Help or is there any logic to CFBundleHelpBookName
  • Previous by thread: Categories vs. subclassing
  • Next by thread: Re: Categories vs. subclassing
  • Index(es):
    • Date
    • Thread