osx - What's the best way to model _ordered_ lists of items with core data (Mac OS X cocoa)? -


What is the best way to list the item with the main data command model?

In OS X 10.6, there is no automated way to maintain order-to-many relationships in the core Information is not. You have to add an "index" attribute to the goal of many relationships and manually maintain this index or keep the mapping from the object ID to the index in which multiple relationships are ordered. It is not really that very difficult to override the KVC order and introduce many accessor and setter methods.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -