On Jun 3, 2010, at 10:01 PM, Shane wrote:

> I'm going to have some icons made for my app, and I'm wondering to
> what size they should be made.

For app and document icons: 512x512 is the maximum icon size on 10.6. If you 
make an icon smaller than that, it will show up pixelated and blurry in the 
Finder (or QuickLook) if someone’s viewing it at a higher size.

Toolbar icons are 32x32. The user can choose a small-icon view of the toolbar 
that programmatically shrinks the icons to 24x24; I don’t know if it’s even 
possible to provide custom 24x24 icons. The results look OK anyway.

Button icons … this depends on what size you make the control. In IB you can 
look at the layout rect (not the frame rect) in the size inspector to see the 
dimensions of the content. If the button isn’t showing any text, the icon will 
fill those dimensions (assuming they’re square). NSButton will shrink larger 
images to fit in the layout rect, so it doesn’t matter if you make the icon 
larger than necessary. In fact, it might be a good idea, because...

Keep in mind that Apple has been threatening for years to make the UI fully 
resolution-independent, presumably when it releases some kick-ass high-DPI 
displays. At that point device pixels will become smaller than the “pixel” 
units used in AppKit APIs, so larger icon sizes might be used to draw the icons 
at higher resolution than the default “72dpi”. For example, if you provided 
64x64 icons for toolbars, and the user had a double-resolution display, the 
toolbar icons would be drawn at the same size but in higher resolution using 
the full 64 pixels.

And of course you can do an end-run around the whole resolution issue by using 
vector artwork for icons. AppKit will render icons in .pdf format just fine, 
and a lot of the system icons use that already.

—Jens_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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

This email sent to arch...@mail-archive.com

Reply via email to