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

Quick NSOutlineView question


  • Subject: Quick NSOutlineView question
  • From: Ken Tozier <email@hidden>
  • Date: Fri, 21 Jun 2002 21:52:14 -0400

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.

  • Follow-Ups:
    • Re: Quick NSOutlineView question
      • From: John Anderson <email@hidden>
  • Prev by Date: Re: Panels shared by documents
  • Next by Date: communicating with other applications
  • Previous by thread: Re: Vanishing Toolbar, Part III
  • Next by thread: Re: Quick NSOutlineView question
  • Index(es):
    • Date
    • Thread