0

please tell me how should I add circular process using NSBezierPath . I know the method appendBezierPathWithArcWithCenter but how it works. thanks in advance

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Snehal Tanawade
  • 139
  • 1
  • 9

1 Answers1

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