Re: Retina / non retina : Drawing icons

2013-08-26 Thread Erwin Namal
This is an interesting article. Thank you. – E On Aug 26, 2013, at 2:12 PM, Shane Stanley wrote: > On 26/08/2013, at 9:40 PM, Erwin Namal wrote: > >> I still have one question: How do I get the size in points of an menu extra >> icon ? > > You might want to read this: > >

Re: Retina / non retina : Drawing icons

2013-08-26 Thread Shane Stanley
On 26/08/2013, at 9:40 PM, Erwin Namal wrote: > I still have one question: How do I get the size in points of an menu extra > icon ? You might want to read this: -- Shane Stanley 'AppleScriptObjC Explor

Re: Retina / non retina : Drawing icons

2013-08-26 Thread Erwin Namal
On Aug 26, 2013, at 9:08 AM, Lee Ann Rucker 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 wrote: > > The NSImage documentation suggests that imageWithSize:flippe

Re: Retina / non retina : Drawing icons

2013-08-26 Thread Marcel Weiher
On Aug 21, 2013, at 18:18 , Erwin Namal 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

Re: Retina / non retina : Drawing icons

2013-08-26 Thread Lee Ann Rucker
Create an NSImage with representations in both sizes: http://lists.apple.com/archives/cocoa-dev/2013/Aug/msg00374.html - Original Message - From: "Erwin Namal" To: "Cocoa Dev List" Sent: Wednesday, August 21, 2013 9:18:55 AM Subject: Retina / non retina : Drawing

Retina / non retina : Drawing icons

2013-08-26 Thread Erwin Namal
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 pixel