Re: Custom ordered table - core data - array controller
Re: Custom ordered table - core data - array controller
- Subject: Re: Custom ordered table - core data - array controller
- From: Jim Correia <email@hidden>
- Date: Tue, 19 Jul 2005 14:03:42 -0400
On Jul 19, 2005, at 1:44 PM, brian miller wrote:
I am using CoreData, NSTableView, and NSArrayController. I need
the user to be able to order the rows in the table (like 'party
shuffle' in Itunes). Without any sort descriptors set, the
arrayController's returns a different order every-time the
application is loaded (when using core data).
I can think of several ways to handle this, but none of them seem
very elegant.
Any ideas or information?
CoreData doesn't (currently) support ordered relationships.
You'll have to include an attribute in the model that describes the
order. (Then make sure the table is displayed based on the order
attribute, and that order attribute is updated for insertions/moves.)
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden