Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals.
The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein.
The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales, which may include electronic versions and/or custom covers and content particular to your business, training goals, marketing focus, and branding interests. For more information, please contact:
U.S. Corporate and Government Sales
(800) 382-3419
corpsales@pearsontechgroup.com
For sales outside the United States please contact:
International Sales
international@pearson.com
Visit us on the Web: informit.com/aw
Editor-in-Chief
Karen Gettman
Senior Acquisitions Editor
Chuck Toporek
Managing Editor
John Fuller
Project Editor
Anna Popick
Copy Editor
Kelli Brooks
Indexer
Jack Lewis
Proofreader
Debbie Liehs
Technical Reviewers
Joachim Bean
Cory Bohon
Andy Lee
Matt Long
Joseph E. Sacco, Ph.D.
Scott D. Yelich
Editorial Assistant
Romny French
Compositor
Rob Mauhar
Cover Designer
Chuti Prasertsith
Library of Congress Cataloging-in-Publication Data
Clair, Robert, 1950–
Learning Objective-C 2.0 : a hands-on guide to Objective-C for Mac and iOS developers /
Robert Clair.
p. cm.
Includes index.
ISBN-13: 978-0-321-71138-0 (pbk. : alk. paper)
ISBN-10: 0-321-71138-6 (pbk. : alk. paper)
1. Objective-C (Computer program language) 2. Object-oriented programming (Computer
science) 3. Macintosh (Computer)—Programming. 4. iPhone (Smartphone)—Programming.
I. Title.
QA76.73.O115C58 2011
005.1’17—dc22
2010019360
Copyright © 2011 Pearson Education, Inc.
All rights reserved. Printed in the United States of America. This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. For information regarding permissions, write to:
Pearson Education, Inc.
Rights and Contracts Department
501 Boylston Street, Suite 900
Boston, MA 02116
Fax: (617) 671-3447
ISBN-13: 978-0-321-71138-0
Text printed in the United States on recycled paper at RR Donnelley in Crawfordsville, Indiana. First printing, July 2010
To the memory of my parents, Selma B. and Martin H. Clair, and to Ekko