UIImage
is not a subclass of NSManagedObject
you cannot refresh is, nor does it respond to isFault
.
In any case, you cannot fault a specific property on a NSManagedObject
, you must fault the entire object.
try [[self managedObjectContext] refreshObject:self mergeChanges:NO]
to fault your entire object.
If you like to fault only the picture data, add a to-one relationship (say imageContainer
) to an entity that hold the image data in a property (say imageData
), and then refresh that relationship on the object like so:
[[self managedObjectContext] refreshObject:self.imageContainer mergeChanges:NO]
You should have got an exception in your code like: Unrecognized selector sent to instance ...