Re: Core Data : Correct way to force reading property from sql store?
Re: Core Data : Correct way to force reading property from sql store?
- Subject: Re: Core Data : Correct way to force reading property from sql store?
- From: Steve Steinitz <email@hidden>
- Date: Mon, 16 Jan 2012 09:18:53 +1100
Hi Jerry,
On 16 Jan 12 Jerry Krinock <email@hidden> wrote:
> It seems like "gimme the latest value of object.foo from the disk" shouldn't be so hard.
It is indeed that hard, possibly for a good reason, but let's not go into that.
You've correctly handled the staleness interval. You may also want to save the current staleness interval and restore it after you refresh the object.
What you've discovered, and what Apple confirmed for me long ago, is that refreshObject does not refresh related objects. As surprised as I was to learn that, it now makes some sense.
You're on the right track.
Cheers,
Steve_______________________________________________
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