While looking for ways to add an ordered to-many relationship to my Core Data model, with the least possible amount of changes to the model, I noticed an option of the to-many relationship that says ordered
(see screenshot below). Wow, sounds great, but what does it do?
My SQLite store is not complaining when I check or uncheck it, and my app still compiles and runs fine too. I was thinking maybe the lightweight migration takes care of the change, but from the looks of it, all my custom NSManagedObject
subclasses work without the need for modification too, so what's going on?
To summarize the questions:
- Should that
ordered
flag change the to-many relationship's data type fromNSSet
toNSArray
? - Or is it just that the order in which the set is modified, will persist on sequential reads and writes?
- Or am I wrong with my assumptions and is it something else entirely?
- Is there an Apple doc page where this feature is described?
Many thanks!