What happens when a fault is “fired”?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When a fault “fires”, the persistent data for the entity instance represented by the fault is pulled from the persistent store and the fault is converted into a full instance. If the data for the instance is present in the
NSPersistentStoreCoordinator‘s row cache, I believe that data is used instead, depending on the time since the data was cached and the value of thestalenessIntervalfor the managed object context containing the fault. If the cached data is older thanstalenessInterval, it is fetched from the persistent store even if a cached copy is present.