gujjula / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

CPGraph removePlot #298

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

1. add 2 plots on CPXYGraph
2. try to remove the first one with following source code :

CPPlot *plot = [graph plotWithIdentifier:identifier];
[graph removePlot:plot];

3. raises error : "[CPScatterPlot retainCount]: message sent to deallocated 
instance..." when rendering view

-------------------------------------
I tried to remove object from datasource and call reloadData on CPXYGraph.
Plot is removed from view but is still in [graph allPlots].

Original issue reported on code.google.com by gortais....@gmail.com on 23 Jun 2011 at 9:51

GoogleCodeExporter commented 9 years ago
Can you provide more code? I'm not able to reproduce the problem.

A shorter way to do the same thing (although both ways should work) is to use

[graph removePlotWithIdentifier:identifier];

Original comment by eskr...@mac.com on 25 Jun 2011 at 9:21

GoogleCodeExporter commented 9 years ago

Original comment by eskr...@mac.com on 29 Oct 2011 at 5:34