Re: Doing a NSFetchRequest on a single NSManagedObject
Re: Doing a NSFetchRequest on a single NSManagedObject
- Subject: Re: Doing a NSFetchRequest on a single NSManagedObject
- From: Andrew Sage <email@hidden>
- Date: Sat, 6 Aug 2005 19:02:06 +0100
Okay it now works in the case I first asked about.
However it does not work in the following case:
Project* project = [projectArrayController selection];
NSEntityDescription *entity = [NSEntityDescription entityForName:@"Task"
inManagedObjectContext:moc];
NSPredicate * predicate;
predicate = [NSPredicate predicateWithFormat:@"(project = %@)",
project];
[fetchRequest setEntity: entity];
[fetchRequest setPredicate: predicate];
results = [moc executeFetchRequest:fetchRequest
error:&fetchError];
With this code I get back no results when there should be 8 items
returned.
Thanks,
Andrew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden