small medium large xlarge

Back to: All Forums  Core Data
Generic-user-small
12 Jun 2009, 01:35
Robbie Hanson (1 post)

After reading page 80 (b5) I was under the impression that I could use [fetchRequest setIncludesPropertyValues:YES] to load non-faulted results. That is, NSManagedObject’s that return NO from [obj isFault]. However, in my code I recently discovered that’s not true. I was baffled - but at least it explained why my code was going so slow.

Checking Apple’s docs I found a different method named setReturnsObjectsAsFaults that does the trick. This method isn’t found anywhere in the book. What is the difference between these two methods, and what exactly does the setIncludesPropertyValues method do?

You must be logged in to comment