-
Cocoa Overview and Foundation
-
Chapter 1 Introduction to Cocoa
- The Mac OS X Programming Environment
- Cocoa Defined
- The Cocoa Frameworks
- Languages
- The Foundation Framework
- The Application Kit Framework
-
Chapter 2 Cocoa Development Tools
- Installing the Developer Tools
- Interface Builder
- Other Tools
- Exercises
-
Chapter 3 Object-Oriented Programming with Objective-C
- Introducing Objects
- Creating and Using Objects
- Methods and Messages
- Objective-C-Defined Types
- Creating New Classes
- Overriding Methods
- Other Concepts
- Exercises
-
Chapter 4 The Cocoa Foundation Kit
- Strings
- Collections
- Memory Management
- Exercises
-
-
Single-Window Applications
-
Chapter 5 Graphical User Interfaces
- Graphical User Interfaces in Cocoa
- Designing Applications Using MVC
- Create the Currency Converter Project
- Create the Interface
- Define the Classes
- Connect the Model, Controller, and View
- Implement the Classes
- Build and Run
- Exercises
-
Chapter 6 Windows, Views, and Controls
- Windows and the Window System
- The View Hierarchy
- Coordinate Systems
- Controls, Cells, and Formatters
- Targets and Actions
- Exercises
-
Chapter 7 Custom Views
- Custom View Creation Steps
- Create a Custom View
- Drawing into a View: Behind the Scenes
- Draw Strings into a View
- Draw Paths into a View
- Exercises
-
Chapter 8 Event Handling
- Events
- Dot View Application
- Event Delegation
- Notifications
- Exercises
-
Chapter 9 Models and Data Functionality
- Protocols
- Key-Value Coding
- Table Views
- Table View Example
- Saving Data: Coding and Archiving
- Using Formatters
- Sorting Tables
- Exercises
-
-
Document-Based Applications
-
Chapter 10 Multiple Document Architecture
- Architectural Overview
- Building a Document-Based Application
- Exercises
-
Chapter 11 Rich-Text Handling
- Cocoa's Text System
- Creating a Rich-Text Editor
- Enabling the Font Menu
- Text Storage and Attributed Text
- Enabling the Text Menu
- Handling Embedded Images
- Exercises
-
-
Miscellaneous Topics
-
Chapter 12 Printing
- Printing a View
- Using Print Operations
- Setting Margins
- Exercises
-
Chapter 13 Bundles and Resources
- Peeking Inside Bundles
- Using Bundles
- Exercises
-
Chapter 14 Localization
- Mac OS X Language Preferences
- Localizing Resources
- Localizing Nib Files
- Localizing Strings
- Exercises
-
Chapter 15 Defaults and Preferences
- How Preferences Work
- Using Defaults
- Command-Line Preferences Access
- Using Unique Application Identifiers
- Exercises
-
Chapter 16 Accessory Windows
- The Role of File's Owner
- Making an Info Window
- Exercises
-
Chapter 17 Finishing Touches
- Tidying Up the User Interface
- Providing an Icon
- Providing Help
- Customizing the About Box
- Tweaking Compiler Settings
- Packaging for Distribution
- Closure
- Exercises
-
-
Appendixes
-
Appendix A Exercise Solutions
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 10
- Chapter 11
- Chapter 12
- Chapter 13
- Chapter 14
- Chapter 15
- Chapter 16
- Chapter 17
-
Appendix B Additional Resources
- Documentation on Your Hard Drive
- Printed Documentation
- Getting Sample Code
- Web Sites
- Mailing Lists
- Partnering with Apple
-
Appendix C Using the Foundation and Application Kit API References
- Cocoa Browser
-
-
Colophon
- Title:
- Learning Cocoa with Objective-C, Second Edition
- By:
- , James Duncan Davidson
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- September 2002
- Pages:
- 384
- Print ISBN:
- 978-0-596-00301-2
- | ISBN 10:
- 0-596-00301-3
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Learning Cocoa with Objective-C, Second Edition, is an Irish setter. Bred as a sporting dog in the 19th century, the Irish setter's agility and energy made it a prime companion for pheasant and quail hunters. By the 1890s, the dog's attractive, silky red coat and elegant build boosted its popularity as a show dog. For the past century, breeders have created a larger dog with a longer coat, with deep chestnut red or patches of red and white hair. The dog is also popular as a family dog. Described as loyal, gentle, energetic, and happy, the Irish setter gets along well with children. Some hospitals, nursing homes, and rehabilitation centers also adopt the Irish setter as a therapy dog. Brian Sawyer was the production editor and proofreader for Learning Cocoa with Objective-C, Second Edition. Jeff Holcomb was the copyeditor. Claire Cloutier and Sheryl Avruch provided quality control. Brenda Miller wrote the index.
Emma Colby designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font. Robert Romano and Emma Colby designed the quick reference card using Adobe's Myriad Condensed and ITC Garamond fonts.
David Futato designed the interior layout. This book was converted to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is Lucas-Font's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Ann Schirmer and Brian Sawyer.
