Home > Store

Xcode 4 Unleashed, Rough Cuts, 2nd Edition

Rough Cuts

  • Available to Safari Subscribers
  • About Rough Cuts
  • Rough Cuts are manuscripts that are developed but not yet published, available through Safari. Rough Cuts provide you access to the very latest information on a given topic and offer you the opportunity to interact with the author to influence the final publication.

Not for Sale

Description

  • Copyright 2012
  • Dimensions: 7" x 9-1/8"
  • Pages: 552
  • Edition: 2nd
  • Rough Cuts
  • ISBN-10: 0-7686-9755-7
  • ISBN-13: 978-0-7686-9755-1

This is the Rough Cut version of the printed book.

In Xcode 4 Unleashed, renowned Mac/iOS developer Fritz Anderson shows how to use Apple’s powerful new Xcode 4 integrated development environment to develop outstanding software with the least effort possible.

Anderson demonstrates Xcode 4 by walking through the construction of three full applications: a command-line tool, an iOS app, and a Mac OS X application. These case-study projects offer practical insights and realistic best practices for efficiently utilizing Xcode 4 in day-to-day development.

Next, he drills down to offer an even deeper understanding of Xcode 4’s most powerful capabilities. Through practical examples, he shows experienced Apple developers how to move to Xcode 4’s “browser” model from older document-based approaches. You’ll also find thorough, up-to-the-minute coverage of key tasks ranging from builds and profiling to documentation.

He concludes with a chapter-length roundup of “tips, traps, and features” for maximizing your productivity with Xcode 4—whether you’re writing iOS apps or Mac applications, working solo, or as part of a large development team.

Detailed information on how to…
  • Get started fast with Xcode 4 project workflow
  • Master Xcode 4’s new features and development paradigms
  • Construct modern iOS and Mac user interfaces with Interface Builder
  • Implement Model-View-Controller designs in iOS apps
  • Use Storyboard to specify an iOS app’s entire structure in one file
  • Leverage Xcode’s first-class unit testing and measurement tools
  • Master the essentials of iOS provisioning
  • Use Mac OS X bindings to simplify the link between data and screen
  • Quickly localize Mac and iOS software for new languages and markets
  • Package and share subprograms that can be integrated into any OS X application
  • Use the Xcode Build System to move from source files to executable products
  • Fully understand and optimize performance and resource usage
Register your copy today at informit.com/register to download a free 90+ page guide to 4.4 & 4.5 feature changes

Sample Content

Table of Contents

Introduction     1
Part I   First Steps

1   Getting Xcode     9
Before You Do Anything     9
Requirements     10
Installing Xcode.     10
What You Get     11
Removing Xcode.     12
Apple Developer Programs     12
Through an Installer Package     13
Summary     15

2   Kicking the Tires 17
Starting Xcode     17
Hello World     19
  A New Project     19
  Quieting Xcode Down     21
  Building and Running     21
The Real Thing     23
Getting Rid of It     23
Summary     24

3   Simple Workflow and Passive Debugging     25
Building     28
Running     30
Simple Debugging     32
Summary     33

4   Active Debugging     35
A Simple Test Case     35
Going Active     35
  Setting a Breakpoint.     36
  The Variables Pane     37
  Stepping Through     38
Fixing the Problem     40
  Behaviors     40
  The Fix     42
Summary     43

5   Compilation      45
Compiling     46
Linking     50
Dynamic Loading     51
Xcode’s Refinements     52
Compiler Products     55
  Intermediate Products     55
  Precompiled Headers     56
Summary     56

6   Adding a Library Target     57
Adding a Target     57
Targets     58
Target Membership     58
  Adding Files to a Target     59
  Headers in Targets     61
A Dependent Target     62
Adding a Library     63
Debugging a Dependent Target     63
Summary     64

7   Version Control     65
Taking Control     66
  Creating a Git Repository by Hand     66
The State of Your Files     68
  How Subversion Views Files     68
  How Git Views Files     68
  How Xcode Views Files     69
Your First Commit     70
Adding a Remote Repository     71
  Setting Up the Remote     71
  Pushing to the Remote     72
Starting from a Repository     74
Merges and Conflicts     75
  User A     75
  User B     75
  Merging     76
  Conflicts     77
The Versions View     79
  Comparison     79
  Blame     81
  Log     82
  Branching     82
Summary     84

Part II   The Life Cycle of an iOS Application

8   Star

Updates

Submit Errata

More Information