File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ typedef double (^CPTDataSourceBlock)(double);
1818
1919@property (nonatomic , readonly ) CPTDataSourceFunction dataSourceFunction;
2020@property (nonatomic , readonly ) CPTDataSourceBlock dataSourceBlock;
21- @property (nonatomic , readonly , cpt_weak_property) __cpt_weak CPTPlot *dataPlot;
21+ @property (nonatomic , readonly ) CPTPlot *dataPlot;
2222
2323@property (nonatomic , readwrite ) CGFloat resolution;
2424@property (nonatomic , readwrite , strong ) CPTPlotRange *dataRange;
Original file line number Diff line number Diff line change 1313
1414@interface CPTFunctionDataSource ()
1515
16- @property (nonatomic , readwrite , cpt_weak_property) __cpt_weak CPTPlot *dataPlot;
16+ @property (nonatomic , readwrite ) CPTPlot *dataPlot;
1717@property (nonatomic , readwrite ) double cachedStep;
1818@property (nonatomic , readwrite ) NSUInteger dataCount;
1919@property (nonatomic , readwrite ) NSUInteger cachedCount;
@@ -44,7 +44,7 @@ @implementation CPTFunctionDataSource
4444 **/
4545@synthesize dataSourceBlock;
4646
47- /* * @property __cpt_weak CPTPlot *dataPlot
47+ /* * @property CPTPlot *dataPlot
4848 * @brief The plot that will display the function values. Must be an instance of CPTScatterPlot.
4949 **/
5050@synthesize dataPlot;
@@ -162,8 +162,7 @@ -(void)dealloc
162162{
163163 [[NSNotificationCenter defaultCenter ] removeObserver: self ];
164164
165- CPTPlot *plot = dataPlot;
166- [plot removeObserver: self forKeyPath: @" plotSpace" context: CPTFunctionDataSourceKVOContext];
165+ [dataPlot removeObserver: self forKeyPath: @" plotSpace" context: CPTFunctionDataSourceKVOContext];
167166}
168167
169168// / @endcond
You can’t perform that action at this time.
0 commit comments