简体   繁体   中英

NSComboBox binding not working in view-based NSTableView

I have two NSArrayControllers, I'm using one to populate the information ina tableView and another to create a list of subjects which can be edited elsewhere in the app. I have a NSComboBox which I use to assign and save these subjects to the list in the tableView and it works fine if the ComboBox is cell-based. However, I want it to be view-based and for some bizarre reason the bindings refuse to work no matter how hard I try. Below is an image of my bindings. The "value" is working fine, however the drop down list (content bindings) simply won't populate with the subjects. What am I doing wrong?

在此处输入图片说明

Thanks,
Mike

Second one binding might be wrong, you unbind that,where you have bound Content values

Subject--->arrangedObjects--->subjectName,

Now it will populate subject's list

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM