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 PROTECTED]". 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to