I want my drawRect function,
-(void)drawRect{
NSBezierPath * path = [NSBezierPath bezierPath];
[path setLineWidth:4];
NSPoint center = {ycord,xcord};
[path moveToPoint: center];
[path appendBezierPathWithArcWithCenter:center
radius:plyr_size
startAngle:0
endAngle:360];
[[NSColor blackColor] set];
[path fill];
[[NSColor blackColor] set];
[path stroke];
}
to be inside a subclass of NSView, without adding another @implementation and @interface. This is to achieve clipping. Alternatively, are there any other options for clipping? If you tell me "NSBezierPath's drawclip" then you have to explain yourself.