• 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
NSBezierPath stroke width on retina/nonretina
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSBezierPath stroke width on retina/nonretina
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: NSScrollView in NSTabView autolayout problem
  • Next by Date: Re: NSBezierPath stroke width on retina/nonretina
  • Previous by thread: Re: More constraints confusion
  • Next by thread: Re: NSBezierPath stroke width on retina/nonretina
  • Index(es):
    • Date
    • Thread