Re: Stupid code or bug in NSBezierPath (or Quartz who knows ?)
Re: Stupid code or bug in NSBezierPath (or Quartz who knows ?)
- Subject: Re: Stupid code or bug in NSBezierPath (or Quartz who knows ?)
- From: Aki Inoue <email@hidden>
- Date: Thu, 14 Jun 2001 12:28:18 -0700
OK, I verified the problem.
I filed a bug against Quartz.
Thanks,
Aki
On 2001.06.14, at 07:22, Stiphane Sudre wrote:
- (void) drawRect:(NSRect) frame
{
NSRect localFrame=[self frame];
NSGraphicsContext * tContext;
tContext=[NSGraphicsContext currentContext];
[tContext setShouldAntialias:NO]; // <- Antialiasing Off
[[NSColor blackColor] set];
// Remind me to post a bug report for the bug in the NSBezierPath
Documentation + (void) setLineWidth doesn't exist.
[NSBezierPath setDefaultLineWidth:1.0]; // <- Line Width = 1 pixel
[NSBezierPath strokeRect:localFrame];
[NSBezierPath strokeLineFromPoint:NSMakePoint(0,0)
toPoint:NSMakePoint(50,50)]; // To check Antialias is Off
}