For the other controls in the Table View I was able to follow the book’s directions. However, when clicking on the checkBox control (yes, control, and no, it’s not a Check Box Cell), in the bindings inspector, the available “Bind to” values in the drop-down are “Application”, “Cars”, “Files Owner”, and “Shared User Defaults Controller”. I am supposed to bind to “Table Cell View” with Key Path “objectValue.onSpecial”. Anyone have any idea what I’ve done wrong?
This is xcode 6.4 if that matters.
i opened up the version from this web site and saw the view heirarchy wasn’t quite right. The heirarchy should be
Special
Table Cell View
CheckBox
Button Cell
Now that I’ve fixed it I’m not sure what it used to be.
When I set up the bindings, I usually do not click the Bind to checkbox or select anything from the pop-up list. I’ve found that by going straight to the Model Key Path setting and specifying the actual binding, Xcode will automatically turn on the checkbox and set the proper value from the list. (I’m lazy, why do anything for myself if the system will do it for me. ) Anyhow, what happens if you just type objectValue.onSpecial into the Model Key Path?
Exactly! The Hierarchy should be:
Special
Table Cell View
CheckBox
Button Cell
I replaced the “Table Cell View” with the Checkbox. Wrong! It should be the “Table View Cell” instead that is deleted and replaced with the Checkbox. Now I can bind the checkbox as desired.
I have the Hierarchy as listed in the previous post and the binding to Table Cell View is not an option. Also tried entering the key path without the check dos and that doesn’t work.