0

i've got a Core-Data model like this (just an example):

Model

Now i'd like to have a window where a user can select the ingredients of the drink from every ingredient. like this:

User Interface

How can i achieve this?

Thanks, Thomas Günzel

thomasguenzel
  • 670
  • 7
  • 25
  • 1
    Perfect use case for Cocoa bindings. Set `NSArrayController` entity to `Ingredient` and bind its `arrangedObjects` property to the table view content binding. Then the second column text field is bound to `objectValue.name` – FluffulousChimp Sep 11 '12 at 15:37
  • and how do i get the selected to be saved under the drinks, ingredients? – thomasguenzel Sep 11 '12 at 15:51
  • you would probably have to extend the `Ingredient` entity with a `selected` attributed (possibly transient?) then use some sort of delegate protocol on the popover to save selected ingredients to the represented drink. – FluffulousChimp Sep 11 '12 at 15:58

0 Answers0