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

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


  • Follow-Ups:
    • Re: Predicates in Interface Builder
      • From: Jens Miltner <email@hidden>
    • Re: Predicates in Interface Builder
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: Xcode 2.5: debugger does not not run
  • Next by Date: Re: Predicates in Interface Builder
  • Previous by thread: Re: Xcode 2.5: debugger does not not run
  • Next by thread: Re: Predicates in Interface Builder
  • Index(es):
    • Date
    • Thread