Crisp text on NSTextView with setDrawsBackground:NO
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