NSBezierPath stroke width on retina/nonretina
NSBezierPath stroke width on retina/nonretina
- Subject: NSBezierPath stroke width on retina/nonretina
- From: Tamas Nagy <email@hidden>
- Date: Fri, 26 Apr 2013 16:51:31 +0200
Hi,
found a really weird issue with some very basic drawing, and have no idea whats going wrong (or what I missed:)). Basically I've a subclass of NSButton and NSButtonCell with some basic custom drawing. I do a 1px width stroke after all around the button, which is looks cool on my computer having retina display, but it looks really fat on a normal display (please check out the attach picture).
That is how do the stroke:
[[NSColor blackColor] setStroke];
[_bezelPath setLineWidth:1.0f];
[_bezelPath stroke];
Any idea is very welcomed,
Thanks,
Tamas
_______________________________________________
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