NSArrayController or NSTreeController?
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