• 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: Quick NSOutlineView question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quick NSOutlineView question


  • Subject: Re: Quick NSOutlineView question
  • From: John Anderson <email@hidden>
  • Date: Fri, 21 Jun 2002 19:23:22 -0700

To be consistent with the model-view-controller architecture of Cocoa, I would suggest creating a controller object to stand between your classes and your UI. Make sure that all of the items that your controller feeds into your outline get retained somewhere.

John


On Friday, June 21, 2002, at 06:52 PM, Ken Tozier wrote:

The data source for my outline view requires three separate classes.

The root (data source) and first tier objects are basically just a subclasses of NSMutableArray with slightly modified behavior
Second tier objects are a subclass of NSMutableDictionary and are actually where all the action happens
Second tier objects are all leaf nodes so the outline will will never go any deeper than the second tier.

My question is, do all three classes need to implement the NSOutlineViewDataSource protocols? Or do I just define them in the root and write some sort of tree traversal routine to try and match up object passed in from the UI with it's corresponding entry in the data source?

Thanks for any help

Ken Tozier
_______________________________________________
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.
_______________________________________________
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: 
 >Quick NSOutlineView question (From: Ken Tozier <email@hidden>)

  • Prev by Date: communicating with other applications
  • Next by Date: [Solved] Vanishing Toolbar
  • Previous by thread: Quick NSOutlineView question
  • Next by thread: communicating with other applications
  • Index(es):
    • Date
    • Thread