Book description
The best-selling introduction to Cocoa, once again updated to cover the latest Mac programming technologies, and still enthusiastically recommended by experienced Mac OS X developers.
“Aaron’s book is the gold standard for Mac OS X programming books—beautifully written, and thoughtfully sculpted. The best book on Leopard development.”
—Scott Stevenson, www.theocacao.com
“This is the first book I’d recommend for anyone wanting to learn Cocoa from scratch. Aaron’s one of the few (perhaps only) full-time professional Cocoa instructors, and his teaching experience shows in the book.”
—Tim Burks, software developer and creator of the Nu programming language, www.programming.nu
“If you’re a UNIX or Windows developer who picked up a Mac OS X machine recently in hopes of developing new apps or porting your apps to Mac users, this book should be strongly considered as one of your essential reference and training tomes.”
—Kevin H. Spencer, Apple Certified Technical Coordinator
If you’re developing applications for Mac OS X, Cocoa® Programming for Mac® OS X, Third Edition, is the book you’ve been waiting to get your hands on. If you’re new to the Mac environment, it’s probably the book you’ve been told to read first. Covering the bulk of what you need to know to develop full-featured applications for OS X, written in an engaging tutorial style, and thoroughly class-tested to assure clarity and accuracy, it is an invaluable resource for any Mac programmer.
Specifically, Aaron Hillegass introduces the three most commonly used Mac developer tools: Xcode, Interface Builder, and Instruments. He also covers the Objective-C language and the major design patterns of Cocoa. Aaron illustrates his explanations with exemplary code, written in the idioms of the Cocoa community, to show you how Mac programs should be written. After reading this book, you will know enough to understand and utilize Apple’s online documentation for your own unique needs. And you will know enough to write your own stylish code.
Updated for Mac OS X 10.4 and 10.5, this revised edition includes coverage of Xcode 3, Objective-C 2, Core Data, the garbage collector, and CoreAnimation.
Table of contents
- Copyright
- Preface
- Acknowledgments
- 1. Cocoa: What Is It?
- 2. Let’s Get Started
- 3. Objective-C
- 4. Memory Management
- 5. Target/Action
- 6. Helper Objects
- 7. Key-Value Coding; Key-Value Observing
- 8. NSArrayController
- 9. NSUndoManager
-
10. Archiving
- NSCoder and NSCoding
- The Document Architecture
- Saving and NSKeyedArchiver
- Loading and NSKeyedUnarchiver
- Setting the Extension and Icon for the File Type
- For the More Curious: Preventing Infinite Loops
- For the More Curious: Creating a Protocol
- For the More Curious: Document-Based Applications without Undo
- Universal Type Identifiers
- 11. Basic Core Data
- 12. Nib Files and NSWindowController
-
13. User Defaults
- NSDictionary and NSMutableDictionary
- NSUserDefaults
- Setting the Identifier for the Application
- Creating Keys for the Names of the Defaults
- Registering Defaults
- Letting the User Edit the Defaults
- Using the Defaults
- For the More Curious: NSUserDefaultsController
- For the More Curious: Reading and Writing Defaults from the Command Line
- Challenge
- 14. Using Notifications
- 15. Using Alert Panels
- 16. Localization
- 17. Custom Views
- 18. Images and Mouse Events
- 19. Keyboard Events
- 20. Drawing Text with Attributes
- 21. Pasteboards and Nil-Targeted Actions
- 22. Categories
- 23. Drag-and-Drop
- 24. NSTimer
- 25. Sheets
- 26. Creating NSFormatters
- 27. Printing
- 28. Web Service
- 29. View Swapping
- 30. Core Data Relationships
- 31. Garbage Collection
- 32. Core Animation
- 33. A Simple Cocoa/OpenGL Application
- 34. NSTask
- 35. The End
Product information
- Title: Cocoa Programming for Mac OS X, Third Edition
- Author(s):
- Release date: May 2008
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780321562739
You might also like
book
COCOA PROGRAMMING FOR MAC OS X SECOND EDITION
A new edition of this title is available, ISBN-10: 0321503619 ISBN-13: 9780321503619 The highly acclaimed introduction …
book
Cocoa Programming for OS X: The Big Nerd Ranch Guide
Covering the bulk of what you need to know to develop full-featured applications for OS X, …
book
Learn Cocoa on the Mac, Second Edition
The Cocoa frameworks are some of the most powerful for creating native OS X apps available …
book
Learning Cocoa with Objective-C, 4th Edition
Get up to speed on Cocoa and Objective-C, and start developing applications on the iOS and …