diff -r 28392c9a969f -r b0affce7beb1 Source/HexGrid.m --- a/Source/HexGrid.m Mon Jul 14 21:00:15 2008 -0700 +++ b/Source/HexGrid.m Tue Mar 10 22:36:23 2009 -0700 @@ -147,7 +147,7 @@ CGPoint pos = self.position; CGContextTranslateCTM(ctx, pos.x, pos.y); CGContextBeginPath(ctx); - CGContextAddPath(ctx, ((HexGrid*)_grid).cellPath); + CGContextAddPath(ctx, [(HexGrid*)_grid cellPath]); CGContextDrawPath(ctx, (fill ?kCGPathFill :kCGPathStroke)); if( !fill && self.highlighted ) { @@ -155,7 +155,7 @@ CGContextSetStrokeColorWithColor(ctx, self.borderColor); CGContextSetLineWidth(ctx,6); CGContextBeginPath(ctx); - CGContextAddPath(ctx, ((HexGrid*)_grid).cellPath); + CGContextAddPath(ctx, [(HexGrid*)_grid cellPath]); CGContextDrawPath(ctx, kCGPathStroke); } CGContextRestoreGState(ctx); @@ -165,7 +165,7 @@ - (BOOL)containsPoint:(CGPoint)p { return [super containsPoint: p] - && CGPathContainsPoint( ((HexGrid*)_grid).cellPath, NULL, p, NO ); + && CGPathContainsPoint( [(HexGrid*)_grid cellPath], NULL, p, NO ); }