O'Reilly logo

Modding Mac OS X by Erica Sadun

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exploring the Resources Folder

An application’s Resources folder provides a rich and varied collection of materials. Here, you’ll find such diverse offerings as audio files, icons, window layouts, and more. Practically any kind of file can appear in an application’s Resources folder. It goes far beyond the traditional resource forks used by Mac OS 9 applications and earlier. Table 2-1 offers a brief (but incomplete) rundown of the kinds of resource files you might encounter.

Viewing help files

Apple recommends that all help files be bundled with applications instead of distributed separately. Third-party developers are moving away from the global or user (~)/Library/Documentation/Help path. Instead, most help is now localized and stored within the package’s Resources folder. Each application’s Info.plist file tells Mac Help (i.e., the Help Viewer) where to find the help data. Two keys, CFBundleHelpBookFolder and CFBundleHelpBookName, provide the folder and help topic names. For example, if you’re looking for English-language iTunes help, you’ll find the following entry in iTunes’ Info.plist file:

	<key>CFBundleHelpBookFolder</key>
		<string>iTunes Help</string>
		<key>CFBundleHelpBookName</key>
		<string>iTunes and Music Store Help</string>

The first key tells us that we can find iTunes’ help file in the iTunes Help folder, which is located in /Applications/iTunes.app/Contents/Resources/English.lproj/iTunes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required