Thank you Beatrix for the response!

> On Jan 31, 2015, at 11:56 PM, Beatrix Willius <[email protected]> wrote:
> 
> Just a quick guess:
> 
>> On 01.02.2015, at 01:12, Scott Crick <[email protected]> wrote:
>> 
>> 1. I am having trouble getting the size of the icon correct. I've created a 
>> 16x16 icon and added it to the status item with the following code:
>> 
> The status item icon looks like a 16x16 icon in a 21 pixels high menubar. 
> Have you tried to add a top and bottom margin to the icon?

I have tried that. The same thing is happening. The system is subtly resizing 
the icon. I've tried a 16x16 icon within every size picture from 16x16 to 22x22 
and it is still being distorted.

>> 
>> 2. How do I account for Retina? So far, I've only been able to get 
>> low-resolution icons to appear.
> 
> Normally you only have to make the image the double size. Example:
> 
>  dim theNSImage as NSImageMBS = NSWorkspaceMBS.iconForFile(theApp)
>  if RetinaScaleFactor = 1 then
>    theNSImage.size = new NSSizeMBS(LBMailClients.RowHeight, 
> LBMailClients.RowHeight)
>  else
>    theNSImage.size = new NSSizeMBS(LBMailClients.RowHeight * 2, 
> LBMailClients.RowHeight * 2)
>  end if
>  return theNSImage
> 

Unless I'm missing something, I thought you created the icon itself only once 
and then the menu could be dynamic. If that's the case, then this wouldn't 
work. Perhaps I'm misunderstanding how this works. Of course, I suppose it 
would work in most instances as it would be rare for the menubar to go from 
being Retina to non-Retina, but it CAN happen (such as when the user moves the 
menubar from monitor to monitor).

Sincerely,

Scott
--
Searchware Solutions
Simply Great Software
www.searchwaresolutions.com

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to