• 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
NSArrayController or NSTreeController?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController or NSTreeController?


  • Subject: NSArrayController or NSTreeController?
  • From: Kenneth Baxter <email@hidden>
  • Date: Wed, 02 Mar 2011 09:33:57 +0000 (GMT)

Hi, I'm working on implementing a search capability in my application. Each result will have a category and subcategory associated with it, as well as the actual result data. Separate from this, I will know what order I want the categories and subcategories sorted in at the time, and can populate that to the search results.

I would like to present the results in an outline view so that the top level items are the categories (in order), and the second level items are the sub-categories (in order), and the actual results are detail rows. Sort of like what XCode 3 does with the project search, except two levels of categories rather than just file names.

Should I be implementing this using an NSArrayController and somehow getting it to do the sorting/grouping to produce the outline rows, or should I be looking at an NSTreeController and getting my results to generate a tree rather than a flat list?

Any suggestions on implementation would be welcome.

Thanks

Ken
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: animating addSubview with iOS4
  • Next by Date: Re: animating addSubview with iOS4
  • Previous by thread: Re: animating addSubview with iOS4
  • Next by thread: Outlets Not Connected In awakeFromNib
  • Index(es):
    • Date
    • Thread