Cocoa Programming for OS X: The Big Nerd Ranch Guide
by Aaron Hillegass, Adam Preble and Nate Chandler
Copyright © 2015 Big Nerd Ranch, LLC.
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, contact
Big Nerd Ranch, LLC.
200 Arizona Ave NE
Atlanta, GA 30307
(770) 817-6373
http://www.bignerdranch.com/
book-comments@bignerdranch.com
The 10-gallon hat with propeller logo is a trademark of Big Nerd Ranch, LLC.
Exclusive worldwide distribution of the English edition of this book by
Pearson Technology Group
800 East 96th Street
Indianapolis, IN 46240 USA
http://www.informit.com
The authors and publisher have taken care in writing and printing 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.
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.
ISBN-100134077113
ISBN-13978-0134077116
Fifth edition, first printing, April 2015
Release D.5.1.1
iii
For Aaron’s sons, Walden and Otto
∼
For Adam’s daughters, Aimee and Leah
∼
For Nate’s nieces and nephews
This page intentionally left blank
v
Acknowledgments
Creating this book required the efforts of many people. We want to thank them for their help. Their
contributions have made this a better book than we could have ever written alone.
Thanks to the students who took the Cocoa programming course at the Big Nerd Ranch. They helped
us work the kinks out of the exercises and explanations that appear here. Their curiosity inspired us to
make the book more comprehensive, and their patience made it possible.
Thank you to all the readers of the first four editions who made such great suggestions on our forums
( http://forums.bignerdranch.com/ ).
Thank you to our technical reviewers, Juan Pablo Claude, Chris Morris, Nick Teissler, Pouria Almassi,
and John Gallagher, who made great additions and caught many of our most egregious errors.
Finally, a very big thank you to our support team in writing this book: Liz Holaday, for copy-editing;
Chris Loper, whose excellent tool chain made writing this book that much easier; and most of all Susan
Loper, whose collaboration helped us write the kind of book we believe this technology deserves.