How to connect NSPopupButtons, Bindings, and Core Data Entities?
How to connect NSPopupButtons, Bindings, and Core Data Entities?
- Subject: How to connect NSPopupButtons, Bindings, and Core Data Entities?
- From: Erick Tejkowski <email@hidden>
- Date: Fri, 16 Feb 2007 04:35:14 -0600
I have two questions:
1. Suppose that I have an entity "Person" with two properties
(firstName and lastName). I would like to display all unique
lastNames in an NSPopupButton using bindings. (i.e. no repeats if
more than one "Smith" exists) I can bind and display the names just
fine, but what do I need to do to eliminate repeats of a name in the
popup?
2. How do I bind a second popup and its controller so that I can
display all first names that correspond to the selected lastName from
the first popup? I mostly just need a little guidance on which
bindings to use for the second popup and its controller and the
ModelKeyPath settings.
Thanks,
Erick
_______________________________________________
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