I would like to develop an application where the main Window would have a NSTabView with several NSTabViewItems, and in each item it will have a different NSTableView.
How would you organize the class architecture in order to be able to access from each tab tableview controller to the others? What is the best way to do it?
I have read a lot of stuff about passing data between controllers using delegates and so on, but I think there must be another clearer way to do address this problem.
Having the next example scenario:
TabOneController.h
@interface TabOneController : NSControl {
    NSMutableArray *listOne;
        ...
}
TabTwoController.h
@interface TabTwoController : NSControl {
    NSMutableArray *listTwo;
        ...
}
These two controllers implements NSTableView dataSource and delegate methods using its NSMutableArray list for it. I would like a proper scenario where both controllers could have access to each other (class methods, View Controller, another controller managing all or whatever a good idea would fit here). What do you think it is the best way for it?
Thanks in advance
 
     
     
     
    