You are previewing Sams Teach Yourself Xcode® 4 in 24 Hours.
O'Reilly logo
Sams Teach Yourself Xcode® 4 in 24 Hours

Book Description

In just 24 sessions of one hour or less, Sams Teach Yourself Xcode 4 in 24 Hours will help you achieve breakthrough productivity with Apple’s new Xcode 4.3+ development environment for OS X and iOS devices. Every lesson introduces new concepts and builds on what you’ve already learned, giving you a rock-solid foundation for real-world success!

Step-by-step instructions carefully walk you through the most common Xcode 4 development tasks.

Quizzes and Exercises at the end of each chapter help you test your knowledge.

By the Way notes present interesting information related to the discussion.

Did You Know? tips offer advice or show you easier ways to perform tasks.

Watch Out! cautions alert you to possible problems and give you advice on how to avoid them.

Printed in full color–figures and code appear as they do in Xcode 4.3+

  • Master the MVC design pattern at the heart of iOS and OS X development

  • Use Xcode project templates to get a head start on advanced application features

  • Efficiently use the Xcode Code Editor and get fast, contextually-aware answers with the built-in help system

  • Use iOS Storyboards to visually describe an application’s workflow

  • Get started with Core Data to simplify data management and data-driven user interfaces

  • Use frameworks and libraries to package functionality and promote time-saving code reuse

  • Use Git and Subversion source control for managing distributed projects

  • Prepare Unit tests and use the Xcode debugger to keep your projects error free

  • Package your apps for the App Store

  • Use the command-line Xcode tools for scripting and build automation

  • Table of Contents

    1. Title Page
    2. Copyright Page
    3. Contents at a Glance
    4. Table of Contents
    5. About the Authors
    6. Dedication
    7. Acknowledgments
    8. We Want to Hear from You!
    9. Reader Services
    10. Introduction
      1. Who Should Use This Book?
    11. Hour 1. Xcode 4
      1. Welcome to Xcode
      2. The Apple Developer Programs
      3. Installing the Xcode Developer Tools
      4. The Nickel Tour
      5. Preparing Your iOS Device (Optional)
      6. Summary
      7. Q&A
      8. Workshop
    12. Hour 2. Just Enough Objective-C and Cocoa
      1. Object-Oriented Programming and Objective-C
      2. What Is Objective-C?
      3. Objective-C Programming Basics
      4. Memory Management and Automatic Reference Counting
      5. What Is Cocoa?
      6. Cocoa Versus Cocoa Touch
      7. Summary
      8. Q&A
      9. Workshop
    13. Hour 3. Understanding the MVC Design Pattern
      1. Development, Design Patterns, and MVC
      2. How Xcode Implements MVC
      3. An MVC Walkthrough
      4. Summary
      5. Q&A
      6. Workshop
    14. Hour 4. Using Xcode Templates to Create Projects
      1. Available Project Types
      2. The Project-Creation Process
      3. You’ve Got a Project
      4. Summary
      5. Q&A
      6. Workshop
    15. Hour 5. Managing Projects and Resources
      1. Getting Your Bearings
      2. Managing Project Files
      3. Managing Frameworks and Libraries
      4. Managing Groups
      5. Managing Target Properties
      6. Summary
      7. Q&A
      8. Workshop
    16. Hour 6. Using the Xcode Source Editor
      1. Understanding Editor Basics
      2. Navigating Within and Between Files
      3. Using the Assistant Editor
      4. Correcting Errors and Warnings in the Issue Navigator
      5. Refactoring Code
      6. Using Code Snippets
      7. Summary
      8. Q&A
      9. Workshop
    17. Hour 7. Working with the Xcode 4 Documentation
      1. Overview of Documentation Resources
      2. Configuring the Xcode Documentation Downloads
      3. Understanding the Documentation Resources
      4. Using the Xcode Help Viewer
      5. Using the Quick Help Assistant
      6. Summary
      7. Q&A
      8. Workshop
    18. Hour 8. Creating User Interfaces
      1. What Is Interface Builder?
      2. The Anatomy of an Interface Builder File
      3. Creating User Interfaces
      4. Working with the IB Layout Tools
      5. Customizing Interface Appearance
      6. Setting Object Identities
      7. Adding Custom Objects to Interface Builder
      8. Summary
      9. Q&A
      10. Workshop
    19. Hour 9. Connecting a GUI to Code
      1. Outlet, Actions, and Properties: A Review
      2. Making Connections to Outlets and Actions
      3. Writing Connection Code with Interface Builder
      4. Summary
      5. Q&A
      6. Workshop
    20. Hour 10. Creating iOS Application Workflows with Storyboards
      1. The Power of Storyboards
      2. Storyboard Terminology
      3. The Anatomy of a Multiscene Project
      4. Making Advanced Segues
      5. A Navigation Storyboard Example
      6. Summary
      7. Q&A
      8. Workshop
    21. Hour 11. Building and Executing Applications
      1. The Language of the Build
      2. Managing Targets
      3. Managing Schemes
      4. Using the iOS Simulator
      5. Summary
      6. Q&A
      7. Workshop
    22. Hour 12. Using Source Control
      1. Using Xcode Snapshots
      2. A Brief Introduction to Source Control Systems
      3. Working with Subversion and Git Repositories
      4. Managing a Project in Source Control
      5. Summary
      6. Q&A
      7. Workshop
    23. Hour 13. Xcode-Supported Languages
      1. Choosing the Right Language
      2. Built-In Languages
      3. Adding Support for Other Languages
      4. Summary
      5. Q&A
      6. Workshop
    24. Hour 14. Planning for Reuse: Frameworks and Libraries
      1. Understanding Frameworks
      2. Deploying a Framework
      3. Reusing Code from Existing C/C++ Libraries
      4. Summary
      5. Q&A
      6. Workshop
    25. Hour 15. Putting It All Together: Building an OS X Application
      1. Getting Started
      2. Creating the Interface
      3. Attaching Code
      4. Inserting Interface Object References into the Code
      5. Tying Things Together
      6. Increasing Functionality with a Framework
      7. Summary
      8. Q&A
      9. Workshop
    26. Hour 16. Building an iOS Application
      1. Assessing What You Already Have
      2. Building from the Template
      3. Adding a Static Library Target
      4. Updating Application Logic and Library Calls for iOS
      5. Summary
      6. Q&A
      7. Workshop
    27. Hour 17. Attaching Big Data: Using Core Data in Your Applications
      1. Introducing Core Data
      2. Using the Xcode Core Data Model Editor
      3. Binding a Data Model to a User Interface
      4. Accessing Data Through Code
      5. Summary
      6. Q&A
      7. Workshop
    28. Hour 18. Test Early, Test Often
      1. Adding Unit Tests to an Existing Application
      2. Implementing Tests for Existing Code
      3. Accessing the Rest of an Application Through the Bundle Loader
      4. Summary
      5. Q&A
      6. Workshop
    29. Hour 19. Getting the Bugs Out
      1. Getting Started with the Debugger
      2. Proactive Debugging
      3. Working with Breakpoints
      4. Summary
      5. Q&A
      6. Workshop
    30. Hour 20. Keeping Things Organized: Shared Workspaces
      1. Using Workspaces
      2. Creating a Workspace
      3. Adding Projects to the Workspace
      4. Configuring the OS X Project to Work in the Workspace
      5. Configuring the iOS Project to Work in the Workspace
      6. Summary
      7. Q&A
      8. Workshop
    31. Hour 21. Advanced: Analyzing Code with Instruments
      1. The Instruments Interface
      2. Using Instruments
      3. Additional Runs
      4. Collecting Data from Additional Instruments Simultaneously
      5. Summary
      6. Q&A
      7. Workshop
    32. Hour 22. Managing and Provisioning iOS Devices
      1. Creating an iOS Distribution Certificate
      2. Creating an App ID
      3. Creating a Distribution Provisioning Profile
      4. Summary
      5. Q&A
      6. Workshop
    33. Hour 23. Distributing Your Applications
      1. Finalizing Your Distribution Build
      2. Configuring an iTunes Connect Application Record
      3. Distributing Your Archived Application
      4. Summary
      5. Q&A
      6. Workshop
    34. Hour 24. Xcode CLI Utilities
      1. Using xcode-select
      2. Using xcodebuild
      3. Using xcrun
      4. Other Xcode Command-Line Tools
      5. Bigger and Better Command-Line Uses
      6. Summary
      7. Q&A
      8. Workshop
    35. Index
    36. Add Pages