Re: NSFetchRequest Problem Under iOS 4.3.5

2012-01-24 Thread Hunter Hillegas
I believe that initWithEntityName is new in iOS 5. On Jan 24, 2012, at 11:40 AM, Laurent Daudelin wrote: > NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] > initWithEntityName:@"Relationship"]; ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: NSFetchRequest Problem Under iOS 4.3.5

2012-01-24 Thread Laurent Daudelin
Thanks, Dave, that did the trick! Maybe there could be an additional initializer for NSFetchRequest like initWithEntityName:inManagedObjectContext:... -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys So

Re: NSFetchRequest Problem Under iOS 4.3.5

2012-01-24 Thread Dave DeLong
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"Relationship" inManagedObjectContext:context]; [fetchRequest setEntity:entity]; Dave On Jan 24, 2012, at 11:40 AM, Laurent Daudelin wrote: > Given the following

NSFetchRequest Problem Under iOS 4.3.5

2012-01-24 Thread Laurent Daudelin
Given the following code: NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] initWithEntityName:@"Relationship"]; NSPredicate *predicate = [NSPredicate predicateWithFormat:@"%K = %@", @"parentObject.objectBaseUuid", wallUuid]; [fetchRequest setPredicate:predicate];