O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy, Second Edition

Book Description

You have a great idea for an app, but where do you begin? Objective-C is the universal language of iPhone, iPad, and Mac apps, and Objective-C for Absolute Beginners, Second Edition starts you on the path to mastering this language and its latest release.

  • Using a hands-on approach, you'll learn how to think in programming terms, how to use Objective-C to construct program logic, and how to synthesize it all into working apps. Gary Bennett, an experienced app developer and trainer, will guide you on your journey to becoming a successful app developer.

If you're looking to take the first step towards App Store success, Objective-C for Absolute Beginners is the place to start.

Table of Contents

  1. Title
  2. Dedication
  3. Contents at a Glance
  4. Contents
  5. About the Authors
  6. About the Technical Reviewer
  7. Acknowledgments
  8. Introduction
    1. For the Newbie
    2. For the More Experienced
    3. Why Alice An Innovative 3D Programming Environment
    4. Learning Objective-C Without Alice
    5. How This Book Is Organized
    6. The Formula for Success
    7. The Development Technology Stack
    8. Required Software, Materials, and Equipment
  9. Chapter 1: Becoming a Great iOS or Mac Programmer
    1. Thinking like a Developer
    2. Completing the Development Cycle
    3. Introducing Object Oriented Programming
    4. Working with the Alice Interface
    5. Summary
    6. Exercises
  10. Chapter 2: Programming Basics
    1. Taking a Tour with Alice
    2. Creating an Alice App—To the Moon Alice
    3. Your First Objective-C Program
    4. Summary
    5. Exercises
  11. Chapter 3: It’s All About the Data
    1. Numbering Systems Used in Programming
    2. Data Types
    3. Using Variable and Data Types with Alice
    4. Data Types and Objective-C
    5. Identifying Problems
    6. Summary
    7. Exercises
  12. Chapter 4: Making Decisions About…and Planning Program Flow
    1. Boolean Logic
    2. Designing Apps
    3. Coding the Example App in Alice
    4. Coding the Example App in Objective-C
    5. Moving Forward Without Alice
    6. Summary
    7. Exercises
  13. Chapter 5: Object Oriented Programming with Objective-C
    1. The Object
    2. What Is a Class?
    3. Planning Classes
    4. Inheritance
    5. Why Use OOP?
    6. Advanced Topics
    7. Summary
    8. Exercises
  14. Chapter 6: Learning Objective-C and Xcode
    1. A Brief History of Objective-C
    2. Understanding the Language Symbols
    3. Putting the “Objective” into Objective-C
    4. Writing Another Program in Xcode
    5. Summary
    6. Exercises
  15. Chapter 7: Objective-C Classes, Objects, and Methods
    1. Creating an Objective-C Class
    2. Using Your New Class
    3. Accessing the Xcode Documentation
    4. Summary
    5. Exercises
  16. Chapter 8: Programming Basics in Objective-C
    1. Collections
    2. Using the Mutable Classes
    3. Creating the BookStore Application
    4. Introducing Instance Variables
    5. Introducing Properties
    6. Finishing the MyBookstore Program
    7. Summary
    8. Exercises
  17. Chapter 9: Comparing Data
    1. Revisiting Boolean Logic
    2. Using Relational Operators
    3. Using Boolean Expressions
    4. Using the Switch Statement
    5. Summary
    6. Exercises
  18. Chapter 10: Creating User Interfaces
    1. Understanding Interface Builder
    2. The Model-View-Controller
    3. Human Interface Guidelines (HIGs)
    4. Creating an Example iPhone App with Interface Builder
    5. Summary
    6. Exercises
  19. Chapter 11: Storing Information
    1. Storage Considerations
    2. Preferences
    3. Databases
    4. Storing Information in a Database
    5. Getting Started with Core Data
    6. The Model
    7. Summary
    8. Exercises
  20. Chapter 12: Protocols and Delegates
    1. Multiple Inheritance
    2. Understanding Protocols
    3. Understanding Delegates
    4. Next Steps
    5. Summary
  21. Chapter 13: Memory, Addresses, and Pointers
    1. Understanding Memory
    2. Understanding Memory Address Basics
    3. Allocating Memory
    4. Deallocating Memory
    5. Managing Memory in Objective-C with ARC
    6. Managing Memory in Objective-C Without ARC
    7. If Things Go Wrong
    8. A Note About ARC
    9. Summary
    10. Exercises
  22. Chapter 14: Introducing the Xcode Debugger
    1. Getting Started with Debugging
    2. Dealing with Code Errors and Warnings
    3. Summary
  23. Index