Create an NSImage with representations in both sizes:

http://lists.apple.com/archives/cocoa-dev/2013/Aug/msg00374.html

----- Original Message -----
From: "Erwin Namal" <[email protected]>
To: "Cocoa Dev List" <[email protected]>
Sent: Wednesday, August 21, 2013 9:18:55 AM
Subject: Retina / non retina : Drawing icons

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 ?

Thanks,
- E
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/lrucker%40vmware.com

This email sent to [email protected]
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to