• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core Data : Searching using transient attributes as criteria
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Core Data : Searching using transient attributes as criteria
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: NSTextList question
  • Next by Date: Re: [MEET] June Cocoaheads
  • Previous by thread: NSTextList question
  • Next by thread: Re: Core Data : Searching using transient attributes as criteria
  • Index(es):
    • Date
    • Thread