Re: Refaulting Core Data Objects.
Re: Refaulting Core Data Objects.
- Subject: Re: Refaulting Core Data Objects.
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 6 Jun 2005 06:54:35 -0700
On Jun 4, 2005, at 12:40 PM, Greg Manning wrote:
May be an obvious question, but how do I refault an object with
Fetched Properties?
I've found [NSManagedObjectContext refreshObject: mergeChanges:],
but that seems to restore the object to its last saved state,
instead of just marking the fetched properties as faults.
There is no way to fault individual properties.
refreshObject: mergeChanges: is the appropriate method.
but that seems to restore the object to its last saved state,
That's in effect what faulting does...
To be more accurate: the property values in the fault are
"reconstituted" *when the fault fires*. The values may come from the
underlying cache if the staleness interval has not been exceeded,
otherwise they're retrieved from the underlying store.
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden