Re: Retina / non retina : Drawing icons
Re: Retina / non retina : Drawing icons
- Subject: Re: Retina / non retina : Drawing icons
- From: Erwin Namal <email@hidden>
- Date: Mon, 26 Aug 2013 13:40:09 +0200
On Aug 26, 2013, at 9:08 AM, Lee Ann Rucker <email@hidden> wrote:
> Create an NSImage with representations in both sizes:
>
> http://lists.apple.com/archives/cocoa-dev/2013/Aug/msg00374.html
On Aug 26, 2013, at 12:23 PM, Marcel Weiher <email@hidden> wrote:
>
> The NSImage documentation suggests that imageWithSize:flipped:drawingHandler: is your friend.
>
> "Using this method ensures you’ll get correct results under standard and high resolution.”
Thank you both for your replies. Reading the code and the docs, the size in points of an UI element is the same for retina and non retina displays, but it maps to more pixels for retina display.
I still have one question: How do I get the size in points of an menu extra icon ?
Thank you for your time.
– E
_______________________________________________
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