• 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
Binding collection view label through two entities
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding collection view label through two entities


  • Subject: Binding collection view label through two entities
  • From: Rick Mann <email@hidden>
  • Date: Wed, 29 Jul 2009 18:46:55 -0700

I've got a couple of entities, Foo and Bar. A Foo has a relation to a Bar.

I've created a CollectionView that works well enough displaying a property of the Foos it lists, but can't seem to show the property of the associated Bars. It shows the same Bar property for each Foo it lists.

The view has two text fields. The first is bound to the collectionview item's representedObject.text property (this is a Foo property). The other field is bound to the collectionview item's representedObject.bar.name property. This is the one that is the same for each of the different Foos.

If I iterate the list of Foos in the code, and dump foo.bar.name, it does the right thing.

Is this a problem in NSCollectionView (which is set up in IB)? Or am I doing something wrong elsewhere.

Thanks!
--
Rick

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: [SOLVED] Binding collection view label through two entities
      • From: Rick Mann <email@hidden>
  • Prev by Date: Re: adding PDF annotations to the output of a regular NSView
  • Next by Date: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays)
  • Previous by thread: Re: [NSEvent data1]
  • Next by thread: Re: [SOLVED] Binding collection view label through two entities
  • Index(es):
    • Date
    • Thread