I've started to learn Objective-C/Cocoa and I have a concept/procedure question on how it implement multiple tableViews in on GUI.
I wrote a simple program that opens up a .jdi file (it is a simple text document of an array of layers for lithography processing) and then scales the array according to a scale factor. Now I want to update it to take an array of scale factors and also provide a list of the .jdi files that were selected for scaling.
I attached a screenshot of the GUI showing the layout with the different tableViews.
Problem:
- my AppController class only has one datasource available. So all the tableViews show the same data
Questions:
1) What is the best way to handle mutliple tableViews and dataSources?
2) I think the answer is to have multiple instances of either the AppController class or some other class; but then, how do I link the data between the classes?
3) Is there are particular developer document that you recommend that covers best practices in this type of situation?
Thanks,
Bob
I wrote a simple program that opens up a .jdi file (it is a simple text document of an array of layers for lithography processing) and then scales the array according to a scale factor. Now I want to update it to take an array of scale factors and also provide a list of the .jdi files that were selected for scaling.
I attached a screenshot of the GUI showing the layout with the different tableViews.
Problem:
- my AppController class only has one datasource available. So all the tableViews show the same data
Questions:
1) What is the best way to handle mutliple tableViews and dataSources?
2) I think the answer is to have multiple instances of either the AppController class or some other class; but then, how do I link the data between the classes?
3) Is there are particular developer document that you recommend that covers best practices in this type of situation?
Thanks,
Bob
Last edited: