Re: NSMutableArray subclass (alternatives?)
Re: NSMutableArray subclass (alternatives?)
- Subject: Re: NSMutableArray subclass (alternatives?)
- From: Chris Hanson <email@hidden>
- Date: Mon, 7 Jul 2003 22:11:04 -0500
On Monday, July 7, 2003, at 02:18 PM, Andrew Merenbach wrote:
I have an outline view that contains nodes, all of the same class,
that can have children. I have for this purpose subclassed
NSMutableArray to add a title variable, a sorting boolean, a regular
mutable array (not of my subclass) to contain the actual children, and
a weak link to the parent.
Why did you subclass NSMutableArray for this? It doesn't sound like
you're creating a different kind of array.
Rather, it sounds like you're actually creating a kind of "item
controller" class that manages the interaction between the items in an
NSOutlineView and the model objects they represent.
-- Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Application Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
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.