Re: Core Data + NSOutlineView + Sorting without NSTreeController
Re: Core Data + NSOutlineView + Sorting without NSTreeController
- Subject: Re: Core Data + NSOutlineView + Sorting without NSTreeController
- From: Seth Willits <email@hidden>
- Date: Tue, 10 Jul 2007 13:19:40 -0700
On Jul 8, 2007, at 11:57 AM, Marcus S. Zarra wrote:
If you are going to do that then I would extend the
NSManagedObjects and add the tree functionality to them. This
would avoid the need to keep a parallel set of objects. Then your
parents/branches could have a method that returns the sorted array
of children.
The problem with that is I'd only get one tree. The reason to be
parallel is that I can have multiple parallel trees showing the same
data in different fashions (sorting, filtering, etc) in different
views. If I manage the sorting etc in the data model itself, I'm hosed.
--
Seth Willits
_______________________________________________
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