Predicates in Interface Builder
Predicates in Interface Builder
- Subject: Predicates in Interface Builder
- From: Ian Piper <email@hidden>
- Date: Thu, 24 Sep 2009 19:29:35 +0100
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)
then the search field just doesn't filter at all. Nothing happens when
I type in text. Should I be specifying more than just "entryContent"?
I am assuming, of course, that I *can* search in a binary field -
perhaps that's the problem?
I have looked at the Cocoa Bindings docs but am not illuminated. BTW I
have also seen some sample code that uses either [c] or [cd] in the
filter string. I must confess that I don't know what these mean, and
can't seem to find this documented either. Can anyone illuminate me?
Thanks,
Ian.
--
_______________________________________________
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