• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Refaulting Core Data Objects.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Refaulting Core Data Objects. (From: Greg Manning <email@hidden>)

  • Prev by Date: Re: NYT confirms rumor of Apple switch to Intel
  • Next by Date: Re: NYT confirms rumor of Apple switch to Intel
  • Previous by thread: Refaulting Core Data Objects.
  • Next by thread: If...then statements
  • Index(es):
    • Date
    • Thread