Re: Retina / non retina : Drawing icons
Re: Retina / non retina : Drawing icons
- Subject: Re: Retina / non retina : Drawing icons
- From: Marcel Weiher <email@hidden>
- Date: Mon, 26 Aug 2013 12:23:57 +0200
On Aug 21, 2013, at 18:18 , Erwin Namal <email@hidden> wrote:
> Hi,
>
> My app's menu extra icon should reflect meaningful information to the user. However, there are too many cases to draw icons beforehand. It would be easier to programatically prepare the icon on the fly.
> What would be the best way to get the size of the NSImage to draw (in points or in pixels) and have a perfect look on retina and non-retina displays
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.”
Cheers,
Marcel
_______________________________________________
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