Re: subclassing NSMutableArray
Re: subclassing NSMutableArray
- Subject: Re: subclassing NSMutableArray
- From: brian lee dae yung <email@hidden>
- Date: Sat, 3 Aug 2002 09:24:20 -0700 (PDT)
>
You need to brush up on the difference between is-a and has-a
>
relationships in object-oriented design.
>
>
Your MxPriceSeries class probably shouldn't be a subclass of
>
NSMutableArray; rather, it should have an instance variable of type
>
NSMutableArray.
Hi, thanks for your distinction between has-a and is-a. Although i
could use a has-a relationship, i consider it to be a great kludge of
an implementation. As much as i would enjoy discussing you the
idiosyncracies of my decision to use inheritance versus composition, i
am more interested in understanding why i cannot successfully sub class
NSMutableArray. Any insights to that extent are appreciated.
regards, brian rowe.
=====
.
{: }
.. the mux space conglomerate ..
" family values were never this good "
www . mux space . com
Yahoo! Health - Feel better, live better
http://health.yahoo.com
_______________________________________________
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.