4
I
f you have developed Flash applications before, you
will already be familiar with some of the tools that
will be explored throughout this book. However,
there are a number of new applications that are specific to
iPhone development that you may not be so familiar with.
Some of these are completely optional when developing
iPhone applications, and some are only available on
Mac OS X.
Introducing the
Development Tools
Flash CS5 Professional
Flash CS5 is the main integrated development environment
(IDE) for developing Flash applications for the Web,
desktop, and Flash Lite–enabled mobile devices. In this
11th version of Flash, Flash CS5 introduces us to the
ability to publish Flash applications to native iPhone
applications. This is a pretty big accomplishment as it
brings iPhone development to not only the many Flash
developers in the world, but also the Windows operating
system. Flash will be the primary application used
throughout the book as you explore creating iPhone
applications.
Flash Builder
Flash Builder, formerly know as Flex Builder, is an Eclipse-
based IDE for creating Flex and AS3 projects. Flash Builder
is Adobe’s main ActionScript coding application. Flash CS5
does have the ability to write separate ActionScript code
and classes; however, Flash Builder provides a much more
feature-rich development environment. With the newest
version of Flash Builder, Adobe has also integrated better
workflow between it and Flash CS5. You are now able to
publish .fla files directly from Flash Builder without having
to switch between applications. One of the benefits of Flash
Builder is that it is built on top of Eclipse, a popular open
source IDE. This enables you to take advantage of the
many plug-ins built for Eclipse, which provide additional
functionality that you do not get in Flash CS5. There are
many plug-ins for managing source control, build
integration, and support for other programming languages.
Xcode
Xcode is part of Apple’s developer tools, which can be
downloaded with the iPhone SDK from the iPhone
Developer Program Portal, http://developer.apple.com/
iphone/. Xcode is a Mac OS X–only full-featured
development environment for creating applications with the
iPhone SDK. It is the primary development tool if you are
building Cocoa-based applications. Xcode’s Organizer
window has some great features to help manage data on
your device. You can install and uninstall applications and
provisioning files, as well retrieve application data and
crash reports from your device. This book will also explore
creating application settings bundles with Xcode, which
allow you to create application settings views that will
appear in the Settings application on your device.
Instruments
Instruments, also part of Apple’s developer tools, is an
OS X–only application that allows you to profile many
different parts of your application. It enables you to collect a
wide variety of data at the same time, allowing you to easily
compare the data and spot any abnormalities. Instruments
uses different instruments to collect data. There is an
instrument to profile almost every part of your application.
You can profile file access, memory usage, object allocation,
and OpenGL. Instruments can give you lots of insight into
what is actually going on behind the scenes when your
application is running. Instruments also allows you to
compare data between different runs of your application. For
example, if on your first run of your application you were
able to track down inefficiencies in your code, you could fix
them and run it again and compare the optimized data to the
first. This allows you to see the difference over time as you
optimize your application.
03_622049-ch01.indd 403_622049-ch01.indd 4 11/6/10 12:08 AM11/6/10 12:08 AM