I have an NSTableView
, and I've used Interface Builder to bind its Content to an instance of an NSArrayController
subclass. I have Controller Key set to arrangedObjects
.
So far so good: If I just load an array of strings into my NSArrayController
(using addObjects)
and leave the Model Key Path blank, those strings show up in the table.
However, if I add an array of dictionaries to my NSArrayController
, such that each dictionary has a name
property, and I set Model Key Path to name
, the table just shows a stringified version of the entire arrangedObjects
array n times, where n is the length of the array. Indeed, this happens no matter whether Model Key Path is set to name
, foo
, or blank.
I just want the NSTableView
to display the name
property of each dictionary in arrangedObjects
. What am I doing wrong?