• 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: NSMutableArray subclass (alternatives?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSMutableArray subclass (alternatives?) (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: NSFileWrapper Bug/Problem
  • Next by Date: Sudden problems with linking my project
  • Previous by thread: Re: NSMutableArray subclass (alternatives?)
  • Next by thread: selection area when dragging mouse
  • Index(es):
    • Date
    • Thread