24 #ifndef _CoreDataUtilities_h_
25 #define _CoreDataUtilities_h_
27 @class NSError, NSString;
36 SetNonNullError (NSError ** ptr, NSError * error)
57 NSEntityDescription * entity = [fetchRequest entity];
58 NSPredicate * predicate = [fetchRequest predicate];
59 NSArray * affectedStores = [fetchRequest affectedStores];
63 if ([[
object entity] isEqual: entity] == NO)
71 if ([predicate evaluateWithObject:
object] == NO)
77 if (affectedStores != nil)
79 if ([affectedStores containsObject: [[
object objectID]
80 persistentStore]] == NO)
89 #endif // _CoreDataUtilities_h_