I hope to express myself with appropriate terms.

I have three entities: customer, country, state. Between country and state, there are two relationships. So I can create a number of countries and select one of these I can create a number of states that belong to it.

For creating the interface of the entity "customer" I put threeNSPopUpButton's:

  • The first selects the country,
  • The second shows the states related to the selected country.
  • The last shows the zip code related to the chosen state.

My problem is that I can not pass data through the chosenNSPopUpButton entity "customer". The NSPopoUpButton works by binding:

  • Content (bind to:country, arrangedObjects),
  • Content Values (bind to:country, arrangedObjects, model key:country),
  • Selected Index (bind to:country, selectionIndex).

What can I do to ensure that the data selected by the three NSPopUpButton's are recorded in the appropriate fields of the entity "customer"?

Edit
Report