1

I have some NSToolbarItems that I am creating from higher resolution images than the ultimate size they need to be displayed. I am using PDFs for the GIF & PNG images, and a PNG for the MacPaint icon in the Xcode Asset Catalog. The auto-shrunk size looks good in Interface Builder, but bad in the real app. I'm not sure why. Is there anything I can do to alleviate this?

What it looks like in Interface Builder: IB Version

What it looks like in the running app: Running App

Here's the full size versions in IB: enter image description here

You can see in particular the Export MacPaint icon is losing detail. Any tips to change how these are shrunk? Thanks in advance!

davecom
  • 1,499
  • 10
  • 30
  • They have to be produced with sizes of 32 x 32 at 72 dpi and of 64 x 64 at 144. dpi – El Tomato Sep 11 '21 at 02:45
  • I think you are saying "don't rely on the auto-scaling". Provide the exact right size bitmaps and all should be well? – davecom Sep 11 '21 at 03:21

1 Answers1

1

The simple answer, as El Tomato mentioned in the comments, is not to rely on the auto-scaling. Just produce bitmaps that are 32 x 32 and 64 x 64.

davecom
  • 1,499
  • 10
  • 30