I'm playing around with cocoa bindings and table views, and I'm trying to create a simple 2 column table view where the keys are displayed in the left column and values in the right. When I try to add anything to the base dictionary, the build succeeds but I get this:
2020-08-10 20:58:36.063356-0400 DictTest[55388:1344906] -[__NSCFNumber length]: unrecognized selector sent to instance 0x8ff53cf7c2dc61e7
2020-08-10 20:58:36.063531-0400 DictTest[55388:1344906] Failed to set (contentViewController) user defined inspected property on (NSWindow): -[__NSCFNumber length]: unrecognized selector sent to instance 0x8ff53cf7c2dc61e7
As for my bindings (I've done them all through storyboard), I have each column bound to the dictionary controller, controllerKey = arrangedObjects, Model Key Path = key/value depending. For the dictionary controller, I have it bound to the dictionary in my View Controller class, which is as such:
@objc dynamic var dict = [Int: String]()
I've been trying to add items to it in the conventional way (dict[0] = "test0").
Thanks