Skip navigation.
 
mlRe: Binding filterPredicate -- not working yet
FROM : Matt Neuburg
DATE : Thu Jul 20 05:19:57 2006

On Wed, 19 Jul 2006 18:46:43 -0400, Jeremy Faller <<email_removed>>
said:

>  - My predicate looks like:
>
>  [self setValue:[NSPredicate predicateWithFormat:@"type < 3"]
>forKey:@"fooPredicate"];
>
>  - I bind the "filterPredicate" to "fooPredicate" and nothing gets
>displayed in my table view.
>
>Two other notes, the 'type' is stored as an integer in the object I
>am trying to display NOT an NSNumber.  I'm not sure if this is a
>problem.


So why not test that hypothesis and find out? Presumably the binding is
working, because supplying the predicate causes the table to go blank. So
surely we must assume that, given your predicate and your data, you've
simply filtered out everything in the array. So if that is not the result
you expect, something would likely be amiss with your predicate or your
data. m.

--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>

Related mailsAuthorDate
mlBinding filterPredicate -- not working yet Jeremy Faller Jul 20, 00:46
mlRe: Binding filterPredicate -- not working yet Matt Neuburg Jul 20, 05:19