Tag Archives: NSManagedObject

CoreData generic findManyByKey

The base for many of my SELECT-ish queries when querying by exact match is one generic method I created in some category methods on NSManagedObjectContext:
-(NSArray*)entityName:(NSString*)entityName findManyByRelation:(NSDictionary*)dict
{
// TODO handle dict nil and emptyness
NSMutableArray *arr = initWithCapacity:dict.count];
for(NSString *key in dict)
{