Book description
A new edition of this title is available, ISBN-10: 0321503619 ISBN-13: 9780321503619
The highly acclaimed introduction to Cocoa–recommended most by experienced Mac OS X developers now updated and expanded.
Here's what critics said about the first edition:
"Reading this book is the absolute best way
to learn how to harness the power of this amazing
technology."
–Andrew Stone, President, Stone Design,
www.stone.com
"Make sure this is the first one you pick
up. It's the best book for a beginning Cocoa programmer."
–From the review on HyperJeff.net&
"I love this book. The descriptions are
clear, the examples logical. Everything a programmer needs to get
up to speed on Cocoa."
–Dave Mark, Editor, MacTech Magazine
To help programmers develop applications for Mac OS X, Apple is now giving away XCode, Interface Builder, and the Cocoa frameworks–the tools used to create Safari, GarageBand, Mail, and the iApps. Cocoa® Programming for Mac® OS X, Second Edition, will give you a complete understanding of how to use these tremendously powerful tools and frameworks to write full-featured applications for the Mac.
Guiding programmers through the key features of Cocoa, this book emphasizes design patterns that enable you to predict the behavior of classes you have never used before. Written in a tutorial format, it takes you step-by-step through the creation of six applications and an Interface Builder palette. Each project introduces several new ideas, and as each concept or technique is discussed, the author, drawing on his own extensive experience, shows you the right way to use it.
Updated for Xcode and Mac OS X 10.3, new chapters in this second edition include coverage of OpenGL, AppleScriptability, the undo manager, creating frameworks, and a brief introduction to using GNUstep on Linux.
Table of contents
- Copyright
- Preface to the Second Edition
- Acknowledgments
- 1. Cocoa: What Is It?
- 2. Let's Get Started
- 3. Objective-C
- 4. Controls
- 5. Helper Objects
- 6. Bindings and NSController
- 7. NSUndoManager
-
8. 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: Versioning
- For the More Curious: Creating a Protocol
- For the More Curious: Document-Based Applications Without Undo
- 9. Nib Files and NSWindowController
- 10. User Defaults
-
11. Using Notifications
- What Notifications Are
- What Notifications Are Not
- NSNotification
- NSNotificationCenter
- Posting a Notification
- Registering as an Observer
- Unregistering the Observer
- Handling the Notification When It Arrives
- For the More Curious: Delegates and Notifications
- For the More Curious: The userInfo Dictionary
- Challenge 1
- Challenge 2
- 12. Using Alert Panels
- 13. Localization
- 14. Custom Views
- 15. Images and Mouse Events
- 16. Responders and Keyboard Events
- 17. Working with Fonts and NSAttributedString
- 18. Pasteboards and Nil-Targeted Actions
- 19. Categories
- 20. Drag-and-Drop
- 21. NSTimer
- 22. Sheets
- 23. Creating NSFormatters
- 24. Printing
- 25. Updating Menus
- 26. Working with NSTextView
- 27. Creating Interface Builder Palettes
- 28. AppleScript
- 29. Cocoa and OpenGL
- 30. Creating Frameworks
- 31. GNUstep
- 32. The End
Product information
- Title: COCOA PROGRAMMING FOR MAC OS X SECOND EDITION
- Author(s):
- Release date: April 2004
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780321213143
You might also like
book
Cocoa Programming for Mac OS X, Third Edition
The best-selling introduction to Cocoa, once again updated to cover the latest Mac programming technologies, and …
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
iOS 7 Programming Cookbook
Overcome the vexing issues you’re likely to face when creating apps for the iPhone, iPad, or …