• 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: CoreData & Bindings: How to make a predicate search a to-many rel ationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: CoreData & Bindings: How to make a predicate search a to-many rel ationship


  • Subject: RE: CoreData & Bindings: How to make a predicate search a to-many rel ationship
  • From: Oliver Donald <email@hidden>
  • Date: Tue, 2 Aug 2005 10:40:59 +0100

Thankyou!

I read the documentation but managed to miss that part.

As far as using LIKE... etc etc instead of CONTAINS[c] is concerned, that
was odd. In my app, CONTAINS[c] works how I wanted, but not very
consistently. Sometimes it seems to work, sometimes it doesn't. I've yet to
find a pattern...is this a known bug?

-----Original Message-----
From: mmalcolm crawford [mailto:email@hidden]
Sent: 01 August 2005 20:28
To: cocoa-dev List
Subject: Re: CoreData & Bindings: How to make a predicate search a
to-many rel ationship



On Aug 1, 2005, at 8:38 AM, Oliver Donald wrote:

> chapters.name contains[c] $value
> ...and although no obvious errors are thrown up, no search queries
> return
> any hits. I guess this is because it is a to-many relationship,
> unlike the
> one before which is to-one. How would I go about searching through
> all the
> objects in a to-many relationship like this?
>

ANY chapters.name OPERATOR[c] $value
(See <http://developer.apple.com/documentation/Cocoa/Conceptual/
Predicates/Articles/pBasics.html>.)

For some reason I don't think CONTAINS works, use BEGINSWITH, LIKE,
MATCHES...

mmalc

 _______________________________________________
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


DISCLAIMER: The information contained in this e-mail is confidential and may
be privileged. It is intended for the addressee only. If you are not the
intended recipient, please delete this e-mail immediately. The contents of
this email must not be disclosed or copied without the sender's consent. We
cannot accept any responsibility for viruses, so please scan all
attachments. The statements and opinions expressed in this message are those
of the author and do not necessarily reflect those of the company. The
company does not take any responsibility for the views of the author.

 _______________________________________________
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

  • Prev by Date: drawing image with transparent color ?
  • Next by Date: Re: Sending messages to nil on Intel
  • Previous by thread: drawing image with transparent color ?
  • Next by thread: Re: Using SubEthaEdit as external editor for XCode
  • Index(es):
    • Date
    • Thread