• 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 bind a to-many relation to a tableview?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to bind a to-many relation to a tableview?
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: NSDontLoseFocusOnRunningApp default?
  • Next by Date: Re: unknown symbol
  • Previous by thread: Interface Builder Bug? Changing Outlet Name Breaks It Forever
  • Next by thread: Re: How to bind a to-many relation to a tableview?
  • Index(es):
    • Date
    • Thread