Apress Access

Objective-C for Absolute Beginners

iPhone, iPad and Mac Programming Made Easy

2nd Edition

By Gary Bennett , Mitchell Fisher , Brad Lees

  • eBook Price: $27.99
Buy eBook Buy Print Book
Objective-C for Absolute Beginners, Second Edition teaches you how to program iPhone, iPad, and Mac apps using Objective-C, a powerful language with a rich set of developer tools.

Full Description

  • Add to Wishlist
  • ISBN13: 978-1-4302-3653-5
  • 340 Pages
  • User Level: Beginner
  • Publication Date: December 6, 2011
  • Available eBook Formats: EPUB, MOBI, PDF

Related Titles

  • Beginning Xcode: Swift 3 Edition
  • Agile Swift
  • Pro Tableau
  • Source Code Analytics With Roslyn and JavaScript Data Visualization
  • Introducing Bootstrap 4
  • Practical GameMaker: Studio
  • Appium Recipes
  • Beginning SQL Server R Services
  • Building APIs with Node.js
  • Lean Python
Full 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.

What you’ll learn

  • The fundamentals of computer programming: how to understand variables, design data structures, and work with file systems
  • The logic of object-oriented programming: how to use Classes, Objects, and Methods
  • The flexibility of Apple’s developer tools: how to install Xcode and write programs in Objective-C
  • The power of Cocoa and Cocoa touch: how to make Mac OS X applications or iOS apps that do cool stuff

Who this book is for

Everyone! This book is for anyone who wants to learn to develop apps for the Mac, iPhone, and iPad using the Objective-C programming language. No previous programming experience is necessary!

Table of Contents

Table of Contents

  1. Becoming a Great iPhone/iPad or Mac Programmer
  2. Programming Basics
  3. It’s All About the Data
  4. Making Decisions About...and Planning Program Flow
  5. Object Oriented Programming with Objective-C
  6. Learning Objective-C and Xcode
  7. Objective-C Classes, Objects, and Methods
  8. Diving into Objective-C
  9. More Data Comparison
  10. Creating User Interfaces
  11. Storing Information
  12. Protocols and Delegates
  13. Memory, Addresses, and Pointers
  14. Debugging Programs with Xcode
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.


If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.

On page 34:

Step 3. should be ...line 18 not line 8.

3. We are going to intentionally misplace a semicolon at the end of line 8.

Should read:
3. We are going to intentionally leave out a semicolon at the end of line 18.

On page 55:
Extra comma in table 3-5 line 2 (type int) at the specifiers section.

On page 117:

You show to rename the UIViewController to MyFirstAppViewController.

If you do that all kinds of things break later.

For example, on page 123 where you drag the Touch up inside to the file owner and the method name should popup, it will not.

If you try to run at anytime you get errors in the AppDelegate file because the viewcontroller names do not match.

On page 118:

You show at line 19 the super dealloc message.

On page 113, you leave the ARC enabled.

Super dealloc can not be called if ARC is enabled.

On page 132:

myStation = [[RationStation alloc]

should'nt the class be RadioStation? It threw me a bit at first.

On page 204:

Item 5 instruct reader to open a file named "main.c", but no such files exists. Project is named "Comparison", but a prefix of "Comparisons" is everywhere.

On page 247-249:

In step 6 it reads to set the data type for the yearPublished to 'integer 32'.

However, on pages 248 and 249, Figure 11-6 and 11-7 show the data type as integer 16.

On page 251:

Page 251, first paragraph, last two lines of text.

Next to last line: "You should also notice
that, if you go back to your model and click on Book, it will have a new class."

Clicking on the model view and the 'Book' entity does *not* display anything new or different.

Last line: "Instead of an NSManagedObject, it will have a Book class."

The NSManagedObject is present as well as the class 'Book'.

The listing of 'Author.h' is correct.

The last two lines should be ignored.

On page 254:

Step 3 instructs to double click on the 'Array Controller' and set the name to BookArray.

Double clicking does not work. You must change the name in the 'Identity inspector' via the label edit field.


    1. Learn Swift on the Mac


      View Book

    2. Transitioning to Swift


      View Book