Re: Core Data Fetch Invariance
Re: Core Data Fetch Invariance
- Subject: Re: Core Data Fetch Invariance
- From: Greg Reichow <email@hidden>
- Date: Sun, 27 Dec 2009 01:46:33 +0800
Your first comment was correct; they are unordered. The fact that they may come back in the same order is not guaranteed by the API. Therefore, if you need ordering, add an attribute to the core data object to do so.
Greg
On Dec 27, 2009, at 1:38 AM, Richard Somers wrote:
> Objects in a persistent store are unordered. If I fetch the objects, change nothing in the store, then fetch them again, do the two fetches give me the objects in the same order?
>
> --Richard
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden