• 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
"Subclass" NSMutableArray basic concept?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"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


  • Follow-Ups:
    • Re: "Subclass" NSMutableArray basic concept?
      • From: daniel <email@hidden>
  • Prev by Date: Re: model for NSTableView (newbie)
  • Next by Date: Using NSDictionary to write to /Library/Prefererences
  • Previous by thread: editing sheet Cocoa idiom
  • Next by thread: Re: "Subclass" NSMutableArray basic concept?
  • Index(es):
    • Date
    • Thread