• 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: Core Data, Bindings, NSSearchField, and NSPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data, Bindings, NSSearchField, and NSPopUpButton


  • Subject: Re: Core Data, Bindings, NSSearchField, and NSPopUpButton
  • From: Jamie Hardt <email@hidden>
  • Date: Fri, 12 Sep 2008 18:44:20 -0700

On Sep 12, 2008, at 6:09 PM, Steve Mykytyn wrote:

It would be handy to add an NSPopupButton with the list of countries to optionally restrict the search to a specific country while looking for a city name in the searchfield, say. Can't seem to find any relevant examples of this kind of thing with Core Data + Bindings, where two interface items are controlling the search. I prefer to keep the interface code to zero if possible.


Hi-

You will need an NSArrayController to hold a list of countries. You should be able to create it by binding to your Locations array's "email@hiddenries". That gives you a list of countries to populate the NSArrayController for Countries, and then you make the popup button's selection bound to a filter predicate on your Locations array controller.

Jamie Hardt
The Sound Department
http://www.soundepartment.com/
http://www.imdb.com/name/nm0362504/

_______________________________________________

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


References: 
 >Core Data, Bindings, NSSearchField, and NSPopUpButton (From: Steve Mykytyn <email@hidden>)

  • Prev by Date: Core Data, Bindings, NSSearchField, and NSPopUpButton
  • Next by Date: Re: Newb: Targeting an instance of a class instantiated by a NIB file
  • Previous by thread: Core Data, Bindings, NSSearchField, and NSPopUpButton
  • Next by thread: Bug with -changeAttributes: in NSFontManager/Font Panel?
  • Index(es):
    • Date
    • Thread