cocoa - Problem with NSPopupButtonCell bindings -


I'm trying to get something like this, but bindings do not work for me.

My app allows users to create a platform; So I have a table view of acts . Each task can have a list of lines , so the work table drives a second table view of the view lines (thus Choosing a task will update the line table view along with the lines of that action).

This setup is working fine.

Each line is definitely spoken by a character, so my document object has a list of letters as well as a list of tasks. What do I want, my lines have a pop-up cell that is in the table with values ​​taken from the letters array.

So I followed the steps of that Apple tutorial, but it does not work ...

  • If I click on the content of the table code I am complying with the letter controller. The starting object and selectedObject to the lines controller. RARZ Object Charger then works binding (when I select a value from pop-up, it updates the underlying line object with the new character), < But list & lt; Character ... & gt; Entries
  • If I type the column's contentValues ​​ character controller The starting object name Then when I run the app, I get the following debug error:

      2011-03-16 11: 28: 49.783 scriptpipers [5176: 903] Cocoa bins: Error setting error & lt; Character: 0x100144f60> The object's & lt; NSPopUpButtonCell: 0x100153ff0 & gt; If I remove the  selected object  binding, I still want to  & lt; Character ... & gt; Is obtained.  Output in the list.    

    It seems that contentValues ​​ is a broken binding What am I doing?

    These are my bindings: Enter image details here NSTableView

    table The column and the NSPopupButtonCell were caused by strange things.

    My conclusion is that no table binding is incorrect on table column

Comments