Re: Core data model - binding question
Re: Core data model - binding question
- Subject: Re: Core data model - binding question
- From: Davide Benini <email@hidden>
- Date: Wed, 14 Sep 2005 10:56:03 +0200
Thanks for your suggestion, it works perfectly.
I bind the array controller to selection.passages and the column of
the table to book.author.
Now my problem is eliminating duplicates: when a topic is associated
to more than one passage of the same book I get the author name
duplicated in the table. I tried t bind the table column to
email@hiddenr, but I get this message in the log:
2005-09-14 10:53:42.431 BiblioBeta[21410] [<BibliographicEntry
0x3182a0> valueForUndefinedKey:]: this class is not key value coding-
compliant for the key @distinctUnionOfArrays.
I also tried to put the @distinctUnionOfArrays in different
positions, but I get the same log, and the table doesn't work.
Any suggestion?
Cheers,
Davide
If I understand this correctly, you should bind the array
controller to
selection.passages, and then bind the interface element to the
book.whatever
(name maybe?) key. If that doesn't do it, it would be helpful to
know what
was logged when the app crashed.
JT
I am trying to build an iTunes-like browser interface: first column
selection determines the values displayed in the second column, etc.
This is easily accomplished through the use of the contentSet binding
of the NSArrayController. The controller is hooked up to a core data
model; to select the passages of a book I logically bind the passages
NSArrayController to the selection.book of the book NSArray
controller.
Now I have a slight problem. My core data model is Books <--->>
Passage <<--->>Topic. The iTunes-like table set follows a different
order: topic - book -passage. Now I cannot really use the contentSet
binding, for ther is no "direct" relationship between books and
topics... Is there a smart way to solve this problem? I tried to bind
the book contentSet to the passages array controller with
selection.passages.book key, but the app crashed...
Thanks a lot in advance,
Davide
_______________________________________________
This mind intentionally left blank
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden