I'm trying to have two NSPopupButton that are linked to each other and am having issues with the bindings on the 'child' button.
I have three Core Data entity types: Order
, Client
, and Station
. Station
-> Client
is a many-to-1, so a Client
has multiple Station
, but a Station
can only point to one client.
An Order
has a single Station
attached to it, so I created all the bindings like I show below. I can properly pick any client from the first dropdown, but then the stations dropdown just shows the currently selected station. I don't see all the stations available, and if I change the client, I don't see a new list of stations to choose from.
Order Controller
An NSObjectController bound to the order
entity property in the view controller.
Clients Array Controller
Just binds to the view controller's managedObjectContext to get all clients.
Stations Array Controller
Client NSPopupButton
Station NSPopupButton