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

NSSearchField and bindings question


  • Subject: NSSearchField and bindings question
  • From: email@hidden
  • Date: Mon, 04 Jan 2010 06:11:47 +0000

I'm going the Zarra book, "Core Data" and I;ve reached the section where an NSSearchfield is bound to one of the arrays used in the sample application (page 43). As instructed in the book, I configured the NSSearchfield's predicate binding as follows:
Controller Key: filterPredicate
Model Key Path: name
Display Name: predicate
Predicate Format: keyPath contains $value


This did not work and the NSTableView (column) which should update itself from the NSArrayController does nothing.
I found an example of this sort of thing here:
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html


and found that the binding in the second predicate used for the NSSearchfield is configured like this:
Controller Key: filterPredicate
Model Key Path :
Display Name: Last Name
Predicate Format: lastName contains[cd] $value


I configured my predicate binding fashion and it works. So my question is:
Did I miss something in the book, or is the book wrong?
Thanks
_______________________________________________

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: Setting NSWindow titlebar height
  • Next by Date: Re: Revolving scoreboard
  • Previous by thread: Re: iPhone: load cell from XIB slows down tableview?
  • Next by thread: Re: Re: NSSearchField and bindings question
  • Index(es):
    • Date
    • Thread