• 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
Re: Binding filterPredicate -- not working yet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Environment/permissions on NSTask-launched app
  • Next by Date: Re: Centering an NSAttributedString in a line in a view [SOLVED]
  • Previous by thread: Binding filterPredicate -- not working yet
  • Next by thread: NSBrowser cell reference
  • Index(es):
    • Date
    • Thread