• 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: Ordered lists WAS ADC Core Data article
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ordered lists WAS ADC Core Data article


  • Subject: Re: Ordered lists WAS ADC Core Data article
  • From: Shawn Erickson <email@hidden>
  • Date: Fri, 8 Apr 2005 12:57:01 -0700


On Apr 8, 2005, at 12:40 PM, John Brownlow wrote:

That assumes there is a key on which the objects can be sorted.

But I am interested in an arbitrary order.

The order my friend puts the toys in is whimsical, remember, and does not map to any particular quality of the toys.

I do not want to have to write my friend's ordering on the toy itself because it may not be my toy.

Then stick it in a construct that can model this arbitrary ordering, relationally this wouldn't be hard and is of course supported by core data and if you are smart will work with sort descriptors so your bound views would just work.


For example one possible modeling would be...
Entity: Friend <blah attributes>
Entity: Toy <blah attributes>
Entity: ToyOrderedListEntry <indexInOrderedList, relationship to one Toy>
Entity: ToyOrderedList <relationship to Friend, relationship to zero or more ToyOrderedListEntry>


etc.

-Shawn

_______________________________________________
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: 
 >Re: Ordered lists WAS ADC Core Data article (From: John Timmer <email@hidden>)
 >Re: Ordered lists WAS ADC Core Data article (From: John Brownlow <email@hidden>)

  • Prev by Date: Sorting NSStrings in NSTableColumn (need 10 after 9)
  • Next by Date: Re: ADC Core Data article
  • Previous by thread: Re: Ordered lists WAS ADC Core Data article
  • Next by thread: Re: Ordered lists WAS ADC Core Data article
  • Index(es):
    • Date
    • Thread