Problem with method in NSBezierPath?
Problem with method in NSBezierPath?
- Subject: Problem with method in NSBezierPath?
- From: André Benassi <email@hidden>
- Date: Fri, 16 Nov 2001 19:38:26 -0600
I'm trying to wrap my mind around the NSBezierPath class and one method
has me stumped: It doesn't seem to do anything. The method is
appendBezierPathWithArcFromPoint:toPoint:radius:
Here is my code that doesn't seem to work:
- (void)drawRect:(NSRect)rect {
// Declare some points
NSPoint p1 = NSMakePoint(100, 100);
NSPoint p2 = NSMakePoint(200, 200);
NSPoint p3 = NSMakePoint(200, 100);
// Constructing the path
NSBezierPath *aPath = [NSBezierPath bezierPath];
[aPath moveToPoint:p1];
[aPath lineToPoint:p2];
[aPath appendBezierPathWithArcFromPoint:p2 toPoint:p3 radius:60];
// outline the path
[[NSColor blackColor] set];
[wall stroke];
}
The first line is drawn, but the arc is not. Any ideas? Is this a bug?
Andri
thx for your time, I am pretty new to this.