Re: Binding filterPredicate -- not working yet
Re: Binding filterPredicate -- not working yet
- Subject: Re: Binding filterPredicate -- not working yet
- From: Matt Neuburg <email@hidden>
- Date: Wed, 19 Jul 2006 20:19:57 -0700
- Thread-topic: Binding filterPredicate -- not working yet
On Wed, 19 Jul 2006 18:46:43 -0400, Jeremy Faller <email@hidden>
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@hidden, <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>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden