• 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: Predicates in Interface Builder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Predicates in Interface Builder


  • Subject: Re: Predicates in Interface Builder
  • From: Shawn Erickson <email@hidden>
  • Date: Thu, 24 Sep 2009 12:03:55 -0700

In a project of mine the following appears to work for me... all are string properties in this example.

(name contains[c] $value) or (email contains[c] $value) or (displayNameWithRole contains[c] $value)

I am not sure you can search entryContent given what type you imply it is. Have you tried to just have "entryContent contains[c] $value" by itself to see if that works.

-Shawn

On Thu, Sep 24, 2009 at 11:39 AM, Shawn Erickson <email@hidden> wrote:


On Thu, Sep 24, 2009 at 11:29 AM, Ian Piper <email@hidden> wrote:
Hi all,

I am having a problem with setting some bindings for a Core Data application. I have a search field for which I am trying to set the bindings. As a slight simplification, I have an entity with two attributes, entryName (string) and entryContent (binary - contains rich text). I am finding that setting a predicate like this works fine, but only searches the name field (as I expected):

entryName contains[c] $value

However, if I try this:

(entryName contains[c] $value) or (entryContent contains[c] $value)

When you add a predicate you should see a second predicate option (predicate2, etc.) appear below it. You can then add an additional predicate.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Predicates in Interface Builder (From: Ian Piper <email@hidden>)
 >Re: Predicates in Interface Builder (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Predicates in Interface Builder
  • Next by Date: [SOLVED] Recommended way to switch compiler version
  • Previous by thread: Re: Predicates in Interface Builder
  • Next by thread: Re: Predicates in Interface Builder
  • Index(es):
    • Date
    • Thread