• 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
Crisp text on NSTextView with setDrawsBackground:NO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crisp text on NSTextView with setDrawsBackground:NO


  • Subject: Crisp text on NSTextView with setDrawsBackground:NO
  • From: Leonardo <email@hidden>
  • Date: Mon, 20 Jan 2014 12:10:25 +0100
  • Thread-topic: Crisp text on NSTextView with setDrawsBackground:NO

Since I have set my NSTextView as

    [textView setDrawsBackground:NO];

I get a crisp text, less antialiased, even if the NSTextView is placed over
a white NSView.
How to fix that?

I have already unsuccessfully tried in my NSTextView
- (void)drawRect:(NSRect)rect
{
   [[NSGraphicsContext currentContext] setShouldAntialias:YES];
   [[NSGraphicsContext currentContext]
       setImageInterpolation:NSImageInterpolationHigh];
   [super drawRect:rect];
}

Any idea? Thanks.

Regards
-- Leonardo


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Crisp text on NSTextView with setDrawsBackground:NO
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: UIButton over sliding UIImageView disappears until slide complete
  • Next by Date: Re: Crisp text on NSTextView with setDrawsBackground:NO
  • Previous by thread: capturing the content of a SpriteKit SKView (or SKScene, SKNode) to an NSImage ?
  • Next by thread: Re: Crisp text on NSTextView with setDrawsBackground:NO
  • Index(es):
    • Date
    • Thread