NSSearchField bindings almost work

  • I have a program set up with core data, and I have a list of
    predicates to filter the data shown, which work only if you type in
    the entire string value of the data item being used to filter, though
    I'm using "somePath contains[cd] $value" for the binding, where
    somePath are various paths I'm trying to filter.  Is there something
    besides "contains" I should be using to get the described behavior of
    "contains"?

    Dustin
    KC9MEL
  • Ok, I'm not sure if anyone looked at this at all, but I figured out
    that I needed my predicate format binding to be "some somePath
    contains[cd] $value", for it to behave correctly, due to the fact that
    the paths that were malfunctioning for me were to-many relationships.
    I still don't understand why the filters worked as expected when I
    typed in the full string of one of the relationship's path's values,
    but it doesn't worry me too much, since it's working now.

    Dustin
    KC9MEL

    On Aug 8, 2008, at 6:11 PM, Dustin Robert Kick wrote:

    > I have a program set up with core data, and I have a list of
    > predicates to filter the data shown, which work only if you type in
    > the entire string value of the data item being used to filter,
    > though I'm using "somePath contains[cd] $value" for the binding,
    > where somePath are various paths I'm trying to filter.  Is there
    > something besides "contains" I should be using to get the described
    > behavior of "contains"?
    >
    >
    > Dustin
    > KC9MEL
    >
    >
previous month august 2008 next month
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Go to today