Re: NSView disable anti-aliasing ?
Re: NSView disable anti-aliasing ?
- Subject: Re: NSView disable anti-aliasing ?
- From: Scott Stevenson <email@hidden>
- Date: Fri, 24 Nov 2006 03:45:32 -0800
On Nov 24, 2006, at 2:36 AM, maximilian marcoll wrote:
i didn't find anything about this in the docs, except for the CG
aliasing example.
but i don't use quartz, so it doesn't help since i mainly draw
NSBezierPaths
how can i turn off anti-aliasing for a nsview object?
Put this at the beginning of drawRect in the NSView subclass:
[[NSGraphicsContext currentContext] setShouldAntialias:NO];
Don't cut yourself on the edges.
- Scott
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins (at) lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden