Skip to Content
Modding Mac OS X
book

Modding Mac OS X

by Erica Sadun
September 2004
Intermediate to advanced
304 pages
9h 26m
English
O'Reilly Media, Inc.
Content preview from Modding Mac OS X

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.

Some of iTunes’ .icns files

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

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Mac OS X for Unix Geeks

Mac OS X for Unix Geeks

Ernest E. Rothman, Brian Jepson
Mac OS X in a Nutshell

Mac OS X in a Nutshell

Jason McIntosh, Chuck Toporek, Chris Stone
Building Cocoa Applications: A Step by Step Guide

Building Cocoa Applications: A Step by Step Guide

Simson Garfinkel, Michael Mahoney

Publisher Resources

ISBN: 0596007094Catalog PageErrata