1.1 --- a/Source/HexGrid.m Mon Jul 14 21:00:15 2008 -0700
1.2 +++ b/Source/HexGrid.m Tue Mar 10 22:36:23 2009 -0700
1.3 @@ -147,7 +147,7 @@
1.4 CGPoint pos = self.position;
1.5 CGContextTranslateCTM(ctx, pos.x, pos.y);
1.6 CGContextBeginPath(ctx);
1.7 - CGContextAddPath(ctx, ((HexGrid*)_grid).cellPath);
1.8 + CGContextAddPath(ctx, [(HexGrid*)_grid cellPath]);
1.9 CGContextDrawPath(ctx, (fill ?kCGPathFill :kCGPathStroke));
1.10
1.11 if( !fill && self.highlighted ) {
1.12 @@ -155,7 +155,7 @@
1.13 CGContextSetStrokeColorWithColor(ctx, self.borderColor);
1.14 CGContextSetLineWidth(ctx,6);
1.15 CGContextBeginPath(ctx);
1.16 - CGContextAddPath(ctx, ((HexGrid*)_grid).cellPath);
1.17 + CGContextAddPath(ctx, [(HexGrid*)_grid cellPath]);
1.18 CGContextDrawPath(ctx, kCGPathStroke);
1.19 }
1.20 CGContextRestoreGState(ctx);
1.21 @@ -165,7 +165,7 @@
1.22 - (BOOL)containsPoint:(CGPoint)p
1.23 {
1.24 return [super containsPoint: p]
1.25 - && CGPathContainsPoint( ((HexGrid*)_grid).cellPath, NULL, p, NO );
1.26 + && CGPathContainsPoint( [(HexGrid*)_grid cellPath], NULL, p, NO );
1.27 }
1.28
1.29