Core Data : Searching using transient attributes as criteria
Core Data : Searching using transient attributes as criteria
- Subject: Core Data : Searching using transient attributes as criteria
- From: Eric Morand <email@hidden>
- Date: Mon, 5 Jun 2006 00:31:29 +0200
Hi List,
Is it possible to fetch managed objects from an SQL database using
transient attribute as criteria ? I have the following error message
when executing my fetch requests and was wondering if this was due to
the fact that the "balance" attribute is transient :
"unresolved keypath: balance"
Here is the part of code that initiliaze and execute the fetch request :
NSPredicate * predicate = [NSPredicate
predicateWithFormat:@"balance = 1000"];
NSFetchRequest * request = [[NSFetchRequest alloc] init];
[request setEntity:[NSEntityDescription entityForName:@"Account"
inManagedObjectContext:context]];
[request setPredicate:predicate];
[context executeFetchRequest:request error:nil];
"balance" is a decimal attribute of entity "Account".
"balance" is declared as transient in the model.
Eric.
_______________________________________________
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