How to bind a to-many relation to a tableview?
How to bind a to-many relation to a tableview?
- Subject: How to bind a to-many relation to a tableview?
- From: Pete Bates <email@hidden>
- Date: Sun, 11 Dec 2005 17:27:09 -0700
OK this is probably an easy one for you pros, but I'm just going
around in circles with it. I have two entities: one which we'll call
"clients" has a few attributes including "clientName" and a to-many
relation ("assetsOwned") to a second entity ("assets") which in turn
has a few attributes including "assetName" and a reciprocal to-one
relation to clients called "ownedBy".
The clients array controller is bound to a popup and displays the
list of clients. When one is selected, the detail info for that
client is correctly displayed in text fields. I would like to
display a list of the client's assets in a table view, but have not
been able to discover the correct binding to do so (from IB). If I
bind the tableview's value to the clientsArrayController, controller
key: arranged objects, and model key path to "assetsOwned.assetName I
get ouput that looks like this in the table:
<NSCFSet: 0x3b3050> (piano, guitar)
<NSCFSet: 0x3901a0> (oboe, drums)
each line in the tableview is related to a client instead of the
desired output of:
piano
guitar
Any help appreciated... thank!
-- Pete
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden