Round Corners With BezierPath
Round Corners With BezierPath
- Subject: Round Corners With BezierPath
- From: Tom Marchand <email@hidden>
- Date: Tue, 22 Aug 2006 21:33:24 -0400
Hi,
I am trying to draw a rectangle with round corners using NSBezierPath
and I am not having much luck. Here's the code:
NSRect myBounds = [self bounds];
NSBezierPath *Box;
[NSBezierPath setDefaultLineJoinStyle:NSRoundLineJoinStyle];
Box=[NSBezierPath bezierPathWithRect: myBounds];
[Box stroke];
The corners are always square no matter what I set the JoinStyle to
although [Box lineJoinStyle] returns the style I set in my code. Any
idea what I am doing wrong?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden