Objective-C for Absolute Beginners: iPhone, iPad, and Mac Programming Made Easy, Second Edition
Copyright 2011 by Gary Bennett, Mitch Fisher, Brad Lees
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher.
ISBN-13 (pbk): 978-1-4302-3653-5
ISBN-13 (electronic): 978-1-4302-3654-2
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
President and Publisher: Paul Manning
Lead Editors: Michelle Lowman and Matthew Moodie
Technical Reviewer: James Bucanek
Editorial Board: Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell,
Morgan Engel, Jonathan Gennick, Jonathan Hassell, Robert Hutchinson,
Michelle Lowman, James Markham, Matthew Moodie, Jeff Olson, Jeffrey Pepper,
Douglas Pundick, Ben Renow-Clarke, Dominic Shakeshaft, Gwenan Spearing,
Matt Wade, Tom Welsh
Coordinating Editor: Kelly Moritz
Copy Editor: Scribendi, Inc.
Compositor: MacPS, LLC
Indexer: BIM Indexing & Proofreading Services
Artist: SPi Global
Cover Designer: Anna Ishchenko
Distributed to the book trade worldwide by Springer Science+Business Media, LLC., 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail .
For information on translations, please e-mail .
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Special Bulk SaleseBook Licensing web page at www.apress.com/bulk-sales
.
The information in this book is distributed on an as is basis, without warranty. Although every precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work.
Any source code or other supplementary materials referenced by the author in this text is available to readers at www.apress.com
. For detailed information about how to locate your book's source code, go to http://www.apress.com/source-code/
.
I'd like to dedicate this book to the two people who had the biggest impact on my career:
my dad, Don W. Bennett, and Steve Jobs. Both passed away this year. Thanks for
inspiring me to work in the field where I can have fun, make a difference, be creative, and
live the American Dream.
Gary Bennett
I would like to thank my family and friends who have always supported my endeavors. I
would especially like to thank Heather, Matthew, and my two children Eric and Jade for
patiently living without me for the many nights and forever-busy weekends.I would also
like to thank my friends Gary and Brad for all the help they provided. It's been great
working with them again.
Mitch Fisher
I would like to thank my wife Natalie and my kids for the support and time they have
given me to work on this book. I am also grateful for good friends who persuade me to
take on crazy endeavors.
Brad Lees
Contents at a Glance
Contents
About the Authors
Gary Bennett is president of xcelMe.com. xcelMe.com provides iPhone/iPad programming courses online. Gary has taught thousands of students how to develop iPhone/iPad apps, and has several very popular apps in the iTunes App Store. Gary's students have some of the best-selling apps in the iTunes App Store. Gary also worked for 25 years in the technology and defense industries. He served 10 years in the US Navy as a nuclear engineer aboard two nuclear submarines. After leaving the Navy, Gary worked for several companies as a software developer, CIO, and president. As CIO, he helped take VistaCare public in 2002. Gary also coauthored iPhone Cool Projects for Apress. He lives in Scottsdale, Arizona, with his wife Stefanie and their four children.