I have an NSManagedObject that has been deleted, and the context containing that managed object has been saved. I understand that isDeleted returns
I fear the discussion in the other answers is actually hiding the simplicity of the correct answer. In pretty much all cases, the correct answer is:
if ([moc existingObjectWithID:object.objectID error:NULL])
{
// object is valid, go ahead and use it
}
The only cases this answer doesn't apply in is:
NSObjectInaccessibleException, or you can use object.isDeleted)