Gabe Heafitz

Remove 'and' from method name.

Objective-C coding conventions do not call for such conjunctions, AFAIK.
@@ -18,7 +18,9 @@ @@ -18,7 +18,9 @@
18 /** 18 /**
19 * Callback method that gets invoked when the user taps on a chart line key point. 19 * Callback method that gets invoked when the user taps on a chart line key point.
20 */ 20 */
21 -- (void)userClickedOnLineKeyPoint:(CGPoint)point lineIndex:(NSInteger)lineIndex andPointIndex:(NSInteger)pointIndex; 21 +- (void)userClickedOnLineKeyPoint:(CGPoint)point
  22 + lineIndex:(NSInteger)lineIndex
  23 + pointIndex:(NSInteger)pointIndex;
22 24
23 /** 25 /**
24 * Callback method that gets invoked when the user taps on a chart bar. 26 * Callback method that gets invoked when the user taps on a chart bar.
@@ -216,7 +216,7 @@ @@ -216,7 +216,7 @@
216 if (distance <= 10.0) { 216 if (distance <= 10.0) {
217 [_delegate userClickedOnLineKeyPoint:touchPoint 217 [_delegate userClickedOnLineKeyPoint:touchPoint
218 lineIndex:p 218 lineIndex:p
219 - andPointIndex:(distance == distanceToP2 ? i + 1 : i)]; 219 + pointIndex:(distance == distanceToP2 ? i + 1 : i)];
220 220
221 return; 221 return;
222 } 222 }
@@ -149,7 +149,7 @@ @@ -149,7 +149,7 @@
149 } 149 }
150 } 150 }
151 151
152 -- (void)userClickedOnLineKeyPoint:(CGPoint)point lineIndex:(NSInteger)lineIndex andPointIndex:(NSInteger)pointIndex{ 152 +- (void)userClickedOnLineKeyPoint:(CGPoint)point lineIndex:(NSInteger)lineIndex pointIndex:(NSInteger)pointIndex{
153 NSLog(@"Click Key on line %f, %f line index is %d and point index is %d",point.x, point.y,(int)lineIndex, (int)pointIndex); 153 NSLog(@"Click Key on line %f, %f line index is %d and point index is %d",point.x, point.y,(int)lineIndex, (int)pointIndex);
154 } 154 }
155 155
@@ -107,9 +107,9 @@ NSArray *items = @[[PNPieChartDataItem dataItemWithValue:10 color:PNRed], @@ -107,9 +107,9 @@ NSArray *items = @[[PNPieChartDataItem dataItemWithValue:10 color:PNRed],
107 [PNPieChartDataItem dataItemWithValue:20 color:PNBlue description:@"WWDC"], 107 [PNPieChartDataItem dataItemWithValue:20 color:PNBlue description:@"WWDC"],
108 [PNPieChartDataItem dataItemWithValue:40 color:PNGreen description:@"GOOL I/O"], 108 [PNPieChartDataItem dataItemWithValue:40 color:PNGreen description:@"GOOL I/O"],
109 ]; 109 ];
110 - 110 +
111 - 111 +
112 - 112 +
113 PNPieChart *pieChart = [[PNPieChart alloc] initWithFrame:CGRectMake(40.0, 155.0, 240.0, 240.0) items:items]; 113 PNPieChart *pieChart = [[PNPieChart alloc] initWithFrame:CGRectMake(40.0, 155.0, 240.0, 240.0) items:items];
114 pieChart.descriptionTextColor = [UIColor whiteColor]; 114 pieChart.descriptionTextColor = [UIColor whiteColor];
115 pieChart.descriptionTextFont = [UIFont fontWithName:@"Avenir-Medium" size:14.0]; 115 pieChart.descriptionTextFont = [UIFont fontWithName:@"Avenir-Medium" size:14.0];
@@ -135,7 +135,7 @@ lineChart.delegate = self; @@ -135,7 +135,7 @@ lineChart.delegate = self;
135 //For DelegateMethod 135 //For DelegateMethod
136 136
137 137
138 --(void)userClickedOnLineKeyPoint:(CGPoint)point lineIndex:(NSInteger)lineIndex andPointIndex:(NSInteger)pointIndex{ 138 +-(void)userClickedOnLineKeyPoint:(CGPoint)point lineIndex:(NSInteger)lineIndex pointIndex:(NSInteger)pointIndex{
139 NSLog(@"Click Key on line %f, %f line index is %d and point index is %d",point.x, point.y,(int)lineIndex, (int)pointIndex); 139 NSLog(@"Click Key on line %f, %f line index is %d and point index is %d",point.x, point.y,(int)lineIndex, (int)pointIndex);
140 } 140 }
141 141