• 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
NSSearchField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSSearchField


  • Subject: NSSearchField
  • From: "Marcus S. Zarra" <email@hidden>
  • Date: Wed, 12 Apr 2006 15:53:34 -0600

I am having some issues setting up my own NSSearchFields. I have searched the list, google and cocoa dev but I have not seen anything on point.

I have a simply window with a NSSearchField. that field's predicate is bound to the NSArrayController with the controller key set to filterPredicate. My predicate format is relatively simple:

(name contains[c] $value) OR (category.name contains[c] $value)

The NSArrayController references NSManagedObjects called Item. The relationship is:

Item <<---> Category

Both Item and Category have an attribute called name.

The issue is when I start up the application and type into the search field, no search occurs. If I click on the magnifying glass icon I see that my single predicate is not selected. If I select it then the search works correctly.

The question, how can I get it to default to using my single predicate automatically? I have looked through the CoreRecipes example and duplicated its functionality as far as I can tell but cannot get this simple function work properly.

Anyone know why that might be?

Thanks,

Marcus S. Zarra
www.zarrastudios.com



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Progress bar on front NSPanel is grey not blue??
  • Next by Date: NSSearchField [SOLVED]
  • Previous by thread: Re: CoreData faulting - does it rely on #self?
  • Next by thread: NSSearchField [SOLVED]
  • Index(es):
    • Date
    • Thread