• 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: Predicate Builder & Fetched Properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Predicate Builder & Fetched Properties


  • Subject: Re: Predicate Builder & Fetched Properties
  • From: mmalcolm crawford <email@hidden>
  • Date: Tue, 5 Jul 2005 12:49:33 -0700


On Jul 5, 2005, at 12:48 PM, Charilaos Skiadas wrote:

<http://developer.apple.com/documentation/Cocoa/Reference/ CoreData_ObjC/Classes/NSFetchedPropertyDesc.html>

If the values on which the result change (in this case, whether the birthYear is changed because someone made a mistake, or you add or remove People -- should be "Person"?), this is not reflected in the fetched property unless you refresh the source object.

So there is no way to get the refreshing to be done automagically when a new People/Person is added/removed, or when the birthYear is changed?
I have to admit, I would expect there would be an option one could set, as to whether the property would be cached or not.

<<http://developer.apple.com/documentation/Cocoa/Reference/ CoreData_ObjC/Classes/NSFetchedPropertyDesc.html>


"The effect of a fetched property is similar to executing the fetch request yourself and placing the results in a transient attribute, although with the framework managing the details. In particular, a fetched property is not fetched until it is requested, and the results are then cached until the object is turned into a fault. You use -refreshObject:mergeChanges: (NSManagedObjectContext) to manually refresh the properties—this causes the fetch request associated with this property to be executed again when the object fault is next fired."

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
  • Follow-Ups:
    • Re: Predicate Builder & Fetched Properties
      • From: Charilaos Skiadas <email@hidden>
References: 
 >Predicate Builder & Fetched Properties (From: Jeff LaMarche <email@hidden>)
 >Re: Predicate Builder & Fetched Properties (From: mmalcolm crawford <email@hidden>)
 >Re: Predicate Builder & Fetched Properties (From: Charilaos Skiadas <email@hidden>)

  • Prev by Date: Re: Predicate Builder & Fetched Properties
  • Next by Date: Re: Multi-User using Core Data?
  • Previous by thread: Re: Predicate Builder & Fetched Properties
  • Next by thread: Re: Predicate Builder & Fetched Properties
  • Index(es):
    • Date
    • Thread