This is a shot in the dark, but on 64-bit OS X, CGFloat
is a double
and not a float
. You should therefore define the array as
CGFloat dash_pattern[]={15.,15.};
This also makes the explicit cast in setLineDash:(CGFloat*)dash_pattern
unnecessary.