please tell me how should I add circular process using NSBezierPath . I know the method appendBezierPathWithArcWithCenter but how it works. thanks in advance
Asked
Active
Viewed 496 times
1 Answers
0
NSBezierPath * path = [NSBezierPath bezierPath];
[path setLineWidth:2];
NSPoint center = { 250,250 };
[path moveToPoint: center];
[path appendBezierPathWithArcWithCenter: center
radius: 64
startAngle: 0
endAngle: 321];
[[NSColor whiteColor] set];
[path fill];
[[NSColor grayColor] set];
[path stroke];
Have a look at cocoadevcentral

Parag Bafna
- 22,812
- 8
- 71
- 144