- 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 youll 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 Apples 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
- Becoming a Great iPhone/iPad or Mac Programmer
- Programming Basics
- Its All About the Data
- Making Decisions About...and Planning Program Flow
- Object Oriented Programming with Objective-C
- Learning Objective-C and Xcode
- Objective-C Classes, Objects, and Methods
- Diving into Objective-C
- More Data Comparison
- Creating User Interfaces
- Storing Information
- Protocols and Delegates
- Memory, Addresses, and Pointers
- Debugging Programs with Xcode
- Source Code/Downloads
If you think that you've found an error in this book, please let us know by emailing to email@example.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.
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.