background image
Now that you have your very own functional application, it's time to give it individual properties instead of
the default properties. In this chapter, you learn about the
Info.plist
file, which is where you can change
properties that govern your application's attributes. This chapter also describes the essential identification
properties required of Mac OS X applications. It walks you through the process of configuring these properties
in Currency Converter. You learn what changing these various properties does when viewing information
about the application. Finally, you learn how to give an application its own icon to set it apart from other
applications.
The Info.plist File
Mac OS X applications contain information to help distinguish them from one another. This information
includes the application's primary and secondary version numbers, and the icon that the Finder and the Dock
use to represent it. The file that stores these details is known as the information property list file (named
Info.plist
). This property list file is stored with the executable files and resources that make up an
application, known as an application bundle.
Note: A bundle is a directory that groups files in a structured hierarchy. To make it easy for users to manipulate
bundles, bundles can be represented as files instead of folders in the Finder; these bundles are known as
packages. An application bundle stores the executable files and resources that make up an application.
Although it's more correct to refer to application bundles as application packages because they're always
shown to users as single files in the Finder, this chapter adopts the term application bundle instead of
application package. For more information on bundles and packages, see Bundle Programming Guide.
Basic Project Attributes
There are several essential properties that identify applications to users and to Mac OS X: application identifier,
build version number, release version number, copyright notice, application name, and application-icon
filename.
Without application identifiers, administrators would have to navigate to the location of each managed
application, a relatively tedious task. The application-identifier property specifies a string Mac OS X
uses to identify an application. This property does not identify a specific application bundle in the
filesystem or a particular version of the application. In normal conditions, users don't see application
identifiers.
The application-identifier property is specified with the
CFBundleIdentifier
key in the
Info.plist
file.
The Info.plist File
57
2007-10-31 | © 2007 Apple Inc. All Rights Reserved.
CHAPTER 7
Configuring Your Application