Viewing Icons
An application’s icon file is stored within its Resources folder. These files use a .icns extension. Each application may contain one, several, or many different icon files. For example, iTunes contains nearly two dozen different icons, while Calculator has just one. Figure 4-3 shows iTunes’ large collection of icon resource files, which provide unique images for each of its associated file types, better known as its icon family. iTunes document types include playable audio files, visual plug-ins, playlists, and more.

Figure 4-3. Some of iTunes’ .icns files
Icon files are not structured like normal picture files; you cannot open one in Adobe Photoshop. Each .icns file contains several versions of the same image (and an associated mask) at several resolution levels, from small to big. The Finder uses the icon files and displays items at the appropriate resolution. Icon masks determine those parts of the icon that can be clicked or dragged. This allows the Finder to display scaled icons while minimizing computational overhead.
The best way to view a .icns file is with icns Browser (/Developer/Applications/Utilities), a utility that’s included with the Xcode Tools. Either drag an icon resource file onto icns Browser or launch the application and choose File → Open (⌘-O). As Figure 4-4 shows, icns Browser displays the icon images and their associated masks from any icon file. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access