I've used cocoa bindings for preferences, but this is my first serious
use of Bindings, so here's my problem:
I have a window with an attached drawer. The drawer contains an
NSTableView which I want to display data stored in some NSDictionarys
contained in an NSArray. The dictionaries are obtained from an XML
document parsed with NSXMLParser. Each dictionary contained in the
array, constitutes a row in the table. I've read through the docs at
Apple's site and looked through some examples here:
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
But I'm still confused. Should I use an NSObjectController and an
NSArrayController, just an NSArrayController or do I need either at all?
When I tried working with both an NSObjectController and an
NSArrayController, I got various errors like these:
Internal consistecy error: this value is not key value coding compliant
for the key cities
(cities was the name of my NSArray)
When connecting things in IB3, I connected the NSObjectController to my
controller class which contains my NSArray as an outlet. Then I bound my
NSArrayController to my NSObjectCOntroller's selectedObjects.
Can anyone provide me with any tips on how to do this?
Thanks