Re: Core data - getting fresh records
Re: Core data - getting fresh records
- Subject: Re: Core data - getting fresh records
- From: Jerry Krinock <email@hidden>
- Date: Wed, 26 Sep 2007 17:34:45 -0700
On 2007 Sep, 26, at 2:27, Steve Steinitz wrote:
My question is, is there any way, short of writing SQL or doing
[managedObjectContext reset], that I can force a Sales fetch to go
directly to the SQLite database and not use the Sales in memory?
I'm new with Core Data, but intrigued that there is not a simple
method to do this. From reading the documentation, though, the
following Wild And Crazy Kludge might work:
(a) setStalenessInterval: to something really small like 10
microseconds
(b) refreshObject:mergeChanges
(c) setStalenessInterval: back to 0 (infinite) or whatever it was
I'm worried that if any other objects get involved in step (b) before
(c) is invoked, it might set off a never-ending chain reaction of
fetches, but it might be fun to try!
_______________________________________________
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