Re: Predicates in Interface Builder
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