• 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
Core Data: Filter and search results
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data: Filter and search results


  • Subject: Core Data: Filter and search results
  • From: Colin Wheeler <email@hidden>
  • Date: Mon, 12 Feb 2007 00:02:36 -0600

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Everybody,

I've tried searching around for this, but have turned up nothing so far. Basically im trying to solve a problem in my app where I want to filter an array in a NSArrayController via a filter predicate and allow a user to do a live search of that filtered array via a NSSearchField (somewhat similar to searching playlists in iTunes) which also searches via filter predicate. The problem is that when the first filter is done and then you go to search the array on the NSSearchField it either resets the filter predicate or does nothing.

I've tried adding something like (self contains[c] $value) to the filter predicate binding on the NSSearchField but that does nothing. Is there a way to set a filter predicate on an array to filter the objects and allow for a NSSearchField to further filter those results?

Colin Wheeler
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iQIVAwUBRdADAT01GYpyfpRUAQLxMg/+NBNHVewM8m4rbbpOu/GxKMJDsaWQR9JX
M4CGqUEalpZXGqHNn42PNLVGUCDxAYq9edssFirjczZ45oGMjeMm6jgKXkLnEObq
9xPGBVrPgTLO++gICfpMBSI13wlOYScm63qdt2+LXt8kKSQtQcWTKgizvqxOj4Uz
sSHi+dGWak2FiYRBsHNIFOWJw2svp94lrkVnZ0t/yc28peqXs0N/ULBzh7iKXQTr
6o1pDlUwUBpRFMXCBqnNNgqgHKSdJEc+ck1w9JDEQQIeOFKg2TYL7Vfwx3eOpXLm
km2iSmwJAvWmOo6q+T5AHFIcdfw5BlPNu8hMmGiibZn2R+GOeD+TZt2DT1yuh7Kt
/N7k64cv/zmTz4r7u2wp9KupPeuU8isBV4p0OO21XftLydNBhgbxX/+RAEBdXTR2
AhNneb9eUZFcWHf57TGa3tQ/D2ZKQt8VBwMNdsBzu7E4DrwHMLCz+rsLX0B42jut
UYKzhoBfb7XB1HWRoaLnz8b5A/+VjV/k+tAoljlqHliwKu6GnaMRukaH3Urhz6Fi
N9COj08gHETbkXrnvRWJCoWnfLteigJTObnckfCcfGvGEZdV9t9RO7DtHVXWXoWW
pEdyBr7esFy0g9Hs/WWZfjGWwD6j1nEyIkFpvdOnkOL3WUeX8qeemq0i0O33o1hD
wkXUS6+r+ZM=
=v3nK
-----END PGP SIGNATURE-----
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Core Data: Filter and search results
      • From: "John C. Daub" <email@hidden>
  • Prev by Date: Re: Very strange Cocoa application issue.
  • Next by Date: Re: Very strange Cocoa application issue.
  • Previous by thread: Re: Core Data: How best to create a data model for tracking changes to related objects?
  • Next by thread: Re: Core Data: Filter and search results
  • Index(es):
    • Date
    • Thread