I try to add two graphs in a window in an OSX application. I have two custom views each hosting one graph. Additionally I have a viewController that refers to both views as outlets and implements the protocol CPTPlotDataSource.
Each of the two graphs has 3 plots which all refer to the viewController as dataSource.
Everything works fine (both graphs are shown at startup) until I try to actually plot data into both graphs. Just the first one plots its data and just the identifiers of the plots of the first graph show up in the numberForPlot-method of the viewController.
Now my question: Is it a problem for a CPTPlotDataSource to provide data to plots belonging to different graph objects?
Thanks a lot for your help!!