How do i check the existance of an object in core data? I think i have most of the code
I found this code in response to another question:

    NSError *error = nil;
     NSUInteger count = [managedObjectContext countForFetchRequest:request error:&error];
     [request release];
    
     if (!error){
      return count;
     }
     else
      return 0;

The problem is, i don't know what to make my fetchRequest be, in order to have it only potentially return my object, and no others.
How do i check the existance of an object in core data? I think i have most of the code
===

I found this code in response to another question:

    NSError *error = nil;
     NSUInteger count = [managedObjectContext countForFetchRequest:request error:&error];
     [request release];
    
     if (!error){
      return count;
     }
     else
      return 0;

The problem is, i don't know what to make my fetchRequest be, in order to have it only potentially return my object, and no others.