• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSView disable anti-aliasing ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSView disable anti-aliasing ? (From: maximilian marcoll <email@hidden>)

  • Prev by Date: NSView disable anti-aliasing ?
  • Next by Date: Re: NSView disable anti-aliasing ?
  • Previous by thread: NSView disable anti-aliasing ?
  • Next by thread: Re: NSView disable anti-aliasing ?
  • Index(es):
    • Date
    • Thread