• 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
Re: Custom ordered table - core data - array controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Custom ordered table - core data - array controller (From: brian miller <email@hidden>)

  • Prev by Date: NSToolbar sometimes does not appear
  • Next by Date: Re: NSGraphicsContext's setCompositingOperation:
  • Previous by thread: Custom ordered table - core data - array controller
  • Next by thread: NSToolbar sometimes does not appear
  • Index(es):
    • Date
    • Thread