Check the existence of an object in Core Data <p>I found this code in response to another question:</p> <pre><code>NSError *error = nil; NSUInteger count = [managedObjectContext countForFetchRequest:request error:&amp;error]; [request release]; if (!error){ return count; } else return 0; </code></pre> <p>The problem is, I don't know what to make my fetch request be, in order to have it only potentially return my object, and no others.</p>