CollectionView, PopupButton, CoreData and Bindings
CollectionView, PopupButton, CoreData and Bindings
- Subject: CollectionView, PopupButton, CoreData and Bindings
- From: Mark Berthold-Losleben <email@hidden>
- Date: Fri, 22 Aug 2008 20:55:36 +0200
Hi everone,
I am trying to insert a PopupButton in the prototype of my
collectionView with CoreData and binding. I have the following data
model:
Entity "Author" with the property "name" and the to-many-relationship
"books" (-> to Entity "Book")
Entity "Book" with property "title" and to-one-relationship "author" (-
> to Entity "Author")
A classical invers relationship. I have two ArrayControllers:
"Authors" and "Books". The "Books"-Controller is bound through
ContentSet (Authors.selection.books) to the "Authors"-Controller and
as usual to the managedObjectContext.
I also have the default CollectionViewItem-Controller. It is no
problem to manage a textField (in the prototype view of the
collectionView) showing for example the name of the author via the
representedObject and binding to "Collection View Item".
What I want: A popupButton in the prototype view showing the titles of
the books as content values via binding.
What I tried: Accessing the data via the representedObject.books ->
failed
Accessing the data via a new controller, bound to
"Collection View Item" and representedObject to contenObject -> failed
Accessing the data via a ValueTransformer that
transforms the Author-Entity of representedObject to an array of
"Book" -> failed
Anyone any ideas??? Thanks.
_______________________________________________
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