• 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
The correct NSPredicate format for one-to-many relationship in Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The correct NSPredicate format for one-to-many relationship in Core Data


  • Subject: The correct NSPredicate format for one-to-many relationship in Core Data
  • From: Jesse Armand <email@hidden>
  • Date: Sun, 26 Jul 2009 05:49:04 +0700

Hello,

I have a managed object model entities A and B with one-to-many relationship.

For this particular task, I want to retrieve all A objects which has a
relation to B with a property matches to "string".

I had tried @"ALL bObjects.bProperty MATCHES 'string'", and it caused
an objc_exception_throw in:

[NSSQLGenerator
generateSQLStatementForFetchRequest:ignoreInheritance:countOnly:]

What seems to be the problem ?

Anybody can advise me on the correct predicate format ?

Jesse Armand
----------------------------------------
(http://jessearmand.com)
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: [iPhone] Why can't a UITextField be its own delegate?
  • Next by Date: Re: [iPhone] Why can't a UITextField be its own delegate?
  • Previous by thread: Re: Multiple delegates Window
  • Next by thread: NSScrollView Not Updating
  • Index(es):
    • Date
    • Thread