"Subclass" NSMutableArray basic concept?
"Subclass" NSMutableArray basic concept?
- Subject: "Subclass" NSMutableArray basic concept?
- From: dkb <email@hidden>
- Date: Mon, 7 Feb 2005 15:00:25 -0600
I am wondering if my approach to "subclassing" NSMutableArray's is
correct.
If I have a list of people modeled by DBPersonList class (which
contains a list of DBPerson objects) and I have a method called "list"
which returns the NSMutableArray containing the DBPerson objects. I
also have convenience methods such as "-addPerson".. so I can do
[personList addPerson:newPerson] instead of [[personList list]
addObject:newPerson]. When I need to use the actual array though I do
use [personList list].
Is this the best approach? Thanks..
_______________________________________________
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