• 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
Multiple NSPredicates to filter an NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple NSPredicates to filter an NSArrayController


  • Subject: Multiple NSPredicates to filter an NSArrayController
  • From: Chris Blackburn <email@hidden>
  • Date: Sun, 12 Aug 2007 22:42:06 +0100

Hey all,

I have an NSArrayController that is hooked up to an NSTableView with bindings including having its filterPredicate bound to an NSSearchField. The trouble is that I want the ArrayController to only select a subset of the data, then perform a search on it, hence my predicate looks something like this:-

(identifier contains[c] $value) and (people_id != nil)

This works fine when something is entered into the Search Field but when nothing is entered then no predicate is sent at all. How can I specify the predicate for searching and the predicate for data selection?

Thanks

Chris.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Synchronized scrollbars (NSScrollView and NSBrowser)
  • Next by Date: Re: iPhoto 08 Plugin SDK question
  • Previous by thread: Crash while trying to port Apache module 1.3 to Apache 2.2
  • Next by thread: CGImageRef to bitmap context?
  • Index(es):
    • Date
    • Thread