Graphics Programs Reference
In-Depth Information
Application Sandbox
Every iOS application has its own
application sandbox
. An application sandbox is a direct-
ory on the filesystem that is barricaded from the rest of the filesystem. Your application
must stay in its sandbox, and no other application can access your sandbox.
Figure 14.2 Application sandbox
The application sandbox contains a number of directories:
application bundle
This directory contains all the resources and the executable. It is read-only.
Library/Preferences/
This directory is where any preferences are stored and where the
Settings
applic-
ation looks for application preferences.
Library/Preferences
is handled
automatically by the class
NSUserDefaults
(which you will learn about in
Chapter 18
)
and is backed up when the device is synchronized with
iTunes
or
iCloud. (We'll see how to synchronize with iCloud in
Chapter 30
.)
tmp/