Re: [SOLVED] Binding collection view label through two entities
Re: [SOLVED] Binding collection view label through two entities
- Subject: Re: [SOLVED] Binding collection view label through two entities
- From: Rick Mann <email@hidden>
- Date: Thu, 30 Jul 2009 02:32:49 -0700
Not sure what was going on here, but when I discovered and fixed a
different error in the code, this started to work properly. Because of
the bug, I wasn't building my model graph properly, but I'm at a loss
as to why it was printing the right thing in NSLog.
On Jul 29, 2009, at 18:46:55, Rick Mann wrote:
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
_______________________________________________
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