• 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
Re: NSPredicate limitation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPredicate limitation?


  • Subject: Re: NSPredicate limitation?
  • From: Aurélien Hugelé <email@hidden>
  • Date: Thu, 22 Dec 2005 09:57:39 +0100

From the documentation :

The Core Data SQL store supports only one to-many operation per query; therefore in any predicate sent to the SQL store, there may be only one operator (and one instance of that operator) from ALL, ANY, and IN.

game over

too bad.

On 22 déc. 05, at 09:23, Aurélien Hugelé wrote:

Hi list !

i have some Email entities with recipients (as a Recipient entity)
an Email has a to many relationship to Recipient
a Recipient has an address attribute

i would like to be able to fetch all emails, where *any* of their recipients address is in a given list.

fetch request entity is Email.
something like "ANY recipients.address IN %@",someAddressesArray.

this does not work because itseems impossible to use a ANY { list } IN { anotherList }
is there something like ANY *OF* { list } IN { anotherList } ?

thanks for your help, I'm a newbie in many things related to database and SQL...

Aurelien

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gumitech.com

This email sent to email@hidden


_______________________________________________
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
References: 
 >NSPredicate limitation? (From: Aurélien Hugelé <email@hidden>)

  • Prev by Date: NSPredicate limitation?
  • Next by Date: RE: Resizing images
  • Previous by thread: NSPredicate limitation?
  • Next by thread: Running out of VM
  • Index(es):
    • Date
    • Thread