Hello there, I am new to mac, and I am in trouble. I need to bind NSTableView to 2D data at the back end so that I can have dynamic update of data at the front end. I have 5*10 data at the back end that I want to bind it to NSTableView. I have tried almost every approach, read every article, implemented examples from the internet but it isn't working.
I have tried different ways to store my 2D data and to connect it with the NSArrayController, but no results. I tried to represent a row with NSMutableDictionary with 5 different keys representing the 5 columns and their values respectively and then encapsulated the the dictionary object in an NSMutableArray object. Tried to bind NSTableColumn with the NSArrayController as well.
I would be obliged if anyone can tell me what data structure should I use, how many NSArrayControllers or NSObjectController should be there and what should be the correct values of controller keys and model in path in the inspector for every element involved. I would appreciate if anyone can provide me with an example closely related to the problem above.
Regards Umair