Home > Mobile >  NSToolbarItem Image Looks Bad Small in Running App but not in Interface Builder
NSToolbarItem Image Looks Bad Small in Running App but not in Interface Builder

Time:09-18

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!

CodePudding user response:

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.

  • Related