• 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
How to connect NSPopupButtons, Bindings, and Core Data Entities?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to connect NSPopupButtons, Bindings, and Core Data Entities?
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Making a manually polled app loop in games?
  • Next by Date: Re: Making a manually polled app loop in games?
  • Previous by thread: Re: Making a manually polled app loop in games?
  • Next by thread: Re: How to connect NSPopupButtons, Bindings, and Core Data Entities?
  • Index(es):
    • Date
    • Thread