all.
Entities:
[Library {title}] <-->> [Book {title}] <<-->> [Author {name}]
Controllers:
NSArrayController [Library] => {Entity: Library}
NSArrayController [Book] => {Entity: Book, ContentSet: Library, books}
NSArrayController [Author] => {Entity: Author, ContentSet: Book, authors}
NSArrayController [Authors] => {Entity: Author}
Form:
[ NSPopUpButton *]
[ NSTableView **]
[ add ] [ remove ]
* button get content from NSArrayController [Author w/o contentset
option]** table get content from another NSArrayController [Author
with contentset option set as Library.books]
Question:
how i can add Author into Book.authors from Author entity?
(Use previous authors for any book)
1) set PopUpButton property
2) add
and link it with NSArrayControllers
3) add this code and link with button:
MOBook, MOAuthor – ManagedObject class created from Entity