Book description
Cocoa® is more than just a collection of classes, and is certainly more than a simple framework. Cocoa is a complete API set, class library, framework, and development environment for building applications and tools to run on Mac OS® X. With over 240 classes, Cocoa is divided into two essential frameworks: Foundation and Application Kit. Above all else, Cocoa is a toolkit for creating Mac OS X application interfaces, and it provides access to all of the standard Aqua® interface components such as menus, toolbars, windows, buttons, to name a few.
Cocoa in a Nutshell begins with a complete overview of Cocoa's object classes. It provides developers who may be experienced with other application toolkits the grounding they'll need to start developing Cocoa applications. Common programming tasks are described, and many chapters focus on the larger patterns in the frameworks so developers can understand the larger relationships between the classes in Cocoa, which is essential to using the framework effectively.
Cocoa in a Nutshell is divided into two parts, with the first part providing a series of overview chapters that describe specific features of the Cocoa frameworks. Information you'll find in Part I includes:
- An overview of the Objective-C language
- Coverage of the Foundation and Application Kit frameworks
- Overviews of Cocoa's drawing and text handling classes
- Network services such as hosts, Rendezvous URL services, sockets, and file handling
- Distributed notifications and distributed objects for interapplication communication
- Extending Cocoa applications with other frameworks, including the AddressBook, DiscRecording, and Messaging frameworks
Peer-reviewed and approved by Apple's engineers to be part of the Apple Developer Connection (ADC) Series, Cocoa in a Nutshell is the book developers will want close at hand as they work. It's the desktop quick reference they can keep by their side to look something up quickly without leaving their work.
Cocoa in a Nutshell is the book developers will want close at hand as they work. It's the desktop quick reference they can keep by their side to look something up quickly without leaving their work.
Publisher resources
Table of contents
- Preface
-
I. Introducing Cocoa
- 1. Objective-C
- 2. Foundation
- 3. The Application Kit
- 4. Drawing and Imaging
- 5. Text Handling
- 6. Networking
- 7. Interapplication Communication
- 8. Other Frameworks
-
II. API Quick Reference
- 9. Foundation Types and Constants
- 10. Foundation Functions
- 11. Application Kit Types and Constants
- 12. Application Kit Functions
-
13. Foundation Classes
- NSAppleEventDescriptor — Mac OS X 10.0
- NSAppleEventManager — Mac OS X 10.0
- NSAppleScript — Mac OS X 10.2
- NSArchiver — Mac OS X 10.0
- NSArray — Mac OS X 10.0
- NSAssertionHandler — Mac OS X 10.0
- NSAttributedString — Mac OS X 10.0
- NSAutoreleasePool — Mac OS X 10.0
- NSBundle — Mac OS X 10.0
- NSCalendarDate — Mac OS X 10.0
- NSCharacterSet — Mac OS X 10.0
- NSClassDescription — Mac OS X 10.0
- NSCloneCommand — Mac OS X 10.0
- NSCloseCommand — Mac OS X 10.0
- NSCoder — Mac OS X 10.0
- NSConditionLock — Mac OS X 10.0
- NSConnection — Mac OS X 10.0
- NSCountCommand — Mac OS X 10.0
- NSCountedSet — Mac OS X 10.0
- NSCreateCommand — Mac OS X 10.0
- NSData — Mac OS X 10.0
- NSDate — Mac OS X 10.0
- NSDateFormatter — Mac OS X 10.0
- NSDecimalNumber — Mac OS X 10.0
- NSDecimalNumberHandler — Mac OS X 10.0
- NSDeleteCommand — Mac OS X 10.0
- NSDeserializer — Mac OS X 10.0
- NSDictionary — Mac OS X 10.0
- NSDirectoryEnumerator — Mac OS X 10.0
- NSDistantObject — Mac OS X 10.0
- NSDistantObjectRequest — Mac OS X 10.0
- NSDistributedLock — Mac OS X 10.0
- NSDistributedNotificationCenter — Mac OS X 10.0
- NSEnumerator — Mac OS X 10.0
- NSException — Mac OS X 10.0
- NSExistsCommand — Mac OS X 10.0
- NSFileHandle — Mac OS X 10.0
- NSFileManager — Mac OS X 10.0
- NSFormatter — Mac OS X 10.0
- NSGetCommand — Mac OS X 10.0
- NSHost — Mac OS X 10.0
- NSIndexSpecifier — Mac OS X 10.0
- NSInvocation — Mac OS X 10.0
- NSKeyedArchiver — Mac OS X 10.2
- NSKeyedUnarchiver — Mac OS X 10.2
- NSLock — Mac OS X 10.0
- NSLogicalTest — Mac OS X 10.0
- NSMachBootstrapServer — Mac OS X 10.0
- NSMachPort — Mac OS X 10.0
- NSMessagePort — Mac OS X 10.0
- NSMessagePortNameServer — Mac OS X 10.0
- NSMethodSignature — Mac OS X 10.0
- NSMiddleSpecifier — Mac OS X 10.0
- NSMoveCommand — Mac OS X 10.0
- NSMutableArray — Mac OS X 10.0
- NSMutableAttributedString — Mac OS X 10.0
- NSMutableCharacterSet — Mac OS X 10.0
- NSMutableData — Mac OS X 10.0
- NSMutableDictionary — Mac OS X 10.0
- NSMutableSet — Mac OS X 10.0
- NSMutableString — Mac OS X 10.0
- NSNameSpecifier — Mac OS X 10.2
- NSNetService — Mac OS X 10.2
- NSNetServiceBrowser — Mac OS X 10.2
- NSNotification — Mac OS X 10.0
- NSNotificationCenter — Mac OS X 10.0
- NSNotificationQueue — Mac OS X 10.0
- NSNull — Mac OS X 10.0
- NSNumber — Mac OS X 10.0
- NSNumberFormatter — Mac OS X 10.0
- NSObject — Mac OS X 10.0
- NSPipe — Mac OS X 10.0
- NSPort — Mac OS X 10.0
- NSPortCoder — Mac OS X 10.0
- NSPortMessage — Mac OS X 10.0
- NSPortNameServer — Mac OS X 10.0
- NSPositionalSpecifier — Mac OS X 10.0
- NSProcessInfo — Mac OS X 10.0
- NSPropertyListSerialization — Mac OS X 10.2
- NSPropertySpecifier — Mac OS X 10.0
- NSProtocolChecker — Mac OS X 10.0
- NSProxy — Mac OS X 10.0
- NSQuitCommand — Mac OS X 10.0
- NSRandomSpecifier — Mac OS X 10.0
- NSRangeSpecifier — Mac OS X 10.0
- NSRecursiveLock — Mac OS X 10.0
- NSRelativeSpecifier — Mac OS X 10.0
- NSRunLoop — Mac OS X 10.0
- NSScanner — Mac OS X 10.0
- NSScriptClassDescription — Mac OS X 10.0
- NSScriptCoercionHandler — Mac OS X 10.0
- NSScriptCommand — Mac OS X 10.0
- NSScriptCommandDescription — Mac OS X 10.0
- NSScriptExecutionContext — Mac OS X 10.0
- NSScriptObjectSpecifier — Mac OS X 10.0
- NSScriptSuiteRegistry — Mac OS X 10.0
- NSScriptWhoseTest — Mac OS X 10.0
- NSSerializer — Mac OS X 10.0
- NSSet — Mac OS X 10.0
- NSSetCommand — Mac OS X 10.0
- NSSocketPort — Mac OS X 10.0
- NSSocketPortNameServer — Mac OS X 10.0
- NSSpecifierTest — Mac OS X 10.0
- NSSpellServer — Mac OS X 10.0
- NSString — Mac OS X 10.0
- NSTask — Mac OS X 10.0
- NSThread — Mac OS X 10.0
- NSTimer — Mac OS X 10.0
- NSTimeZone — Mac OS X 10.0
- NSUnarchiver — Mac OS X 10.0
- NSUndoManager — Mac OS X 10.0
- NSUniqueIDSpecifier — Mac OS X 10.2
- NSURL — Mac OS X 10.0
- NSURLHandle — Mac OS X 10.0
- NSUserDefaults — Mac OS X 10.0
- NSValue — Mac OS X 10.0
- NSWhoseSpecifier — Mac OS X 10.0
-
14. Foundation Protocols
- NSCoding — Mac OS X 10.0
- NSComparisonMethods — Mac OS X 10.0
- NSCopying — Mac OS X 10.0
- NSDecimalNumberBehaviors — Mac OS X 10.0
- NSKeyValueCoding — Mac OS X 10.0
- NSLocking — Mac OS X 10.0
- NSMutableCopying — Mac OS X 10.0
- NSObjCTypeSerializationCallBack — Mac OS X 10.0
- NSObject — Mac OS X 10.0
- NSScriptingComparisonMethods — Mac OS X 10.0
- NSScriptKeyValueCoding — Mac OS X 10.0
- NSScriptObjectSpecifiers — Mac OS X 10.0
- NSURLHandleClient — Mac OS X 10.0
-
15. Application Kit Classes
- NSActionCell — Mac OS X 10.0
- NSAffineTransform — Mac OS X 10.0
- NSApplication — Mac OS X 10.0
- NSBezierPath — Mac OS X 10.0
- NSBitmapImageRep — Mac OS X 10.0
- NSBox — Mac OS X 10.0
- NSBrowser — Mac OS X 10.0
- NSBrowserCell — Mac OS X 10.0
- NSButton — Mac OS X 10.0
- NSButtonCell — Mac OS X 10.0
- NSCachedImageRep — Mac OS X 10.0
- NSCell — Mac OS X 10.0
- NSClipView — Mac OS X 10.0
- NSColor — Mac OS X 10.0
- NSColorList — Mac OS X 10.0
- NSColorPanel — Mac OS X 10.0
- NSColorPicker — Mac OS X 10.0
- NSColorWell — Mac OS X 10.0
- NSComboBox — Mac OS X 10.0
- NSComboBoxCell — Mac OS X 10.0
- NSControl — Mac OS X 10.0
- NSCursor — Mac OS X 10.0
- NSCustomImageRep — Mac OS X 10.0
- NSDocument — Mac OS X 10.0
- NSDocumentController — Mac OS X 10.0
- NSDrawer — Mac OS X 10.0
- NSEPSImageRep — Mac OS X 10.0
- NSEvent — Mac OS X 10.0
- NSFileWrapper — Mac OS X 10.0
- NSFont — Mac OS X 10.0
- NSFontManager — Mac OS X 10.0
- NSFontPanel — Mac OS X 10.0
- NSForm — Mac OS X 10.0
- NSFormCell — Mac OS X 10.0
- NSGlyphInfo — Mac OS X 10.2
- NSGraphicsContext — Mac OS X 10.0
- NSHelpManager — Mac OS X 10.0
- NSImage — Mac OS X 10.0
- NSImageCell — Mac OS X 10.0
- NSImageRep — Mac OS X 10.0
- NSImageView — Mac OS X 10.0
- NSInputManager — Mac OS X 10.0
- NSInputServer — Mac OS X 10.0
- NSLayoutManager — Mac OS X 10.0
- NSMatrix — Mac OS X 10.0
- NSMenu — Mac OS X 10.0
- NSMenuItem — Mac OS X 10.0
- NSMenuItemCell — Mac OS X 10.0
- NSMenuView — Mac OS X 10.0
- NSMovie — Mac OS X 10.0
- NSMovieView — Mac OS X 10.0
- NSMutableParagraphStyle — Mac OS X 10.0
- NSNibConnector — Mac OS X 10.0
- NSNibControlConnector — Mac OS X 10.0
- NSNibOutletConnector — Mac OS X 10.0
- NSOpenGLContext — Mac OS X 10.0
- NSOpenGLPixelFormat — Mac OS X 10.0
- NSOpenGLView — Mac OS X 10.0
- NSOpenPanel — Mac OS X 10.0
- NSOutlineView — Mac OS X 10.0
- NSPageLayout — Mac OS X 10.0
- NSPanel — Mac OS X 10.0
- NSParagraphStyle — Mac OS X 10.0
- NSPasteboard — Mac OS X 10.0
- NSPDFImageRep — Mac OS X 10.0
- NSPICTImageRep — Mac OS X 10.0
- NSPopUpButton — Mac OS X 10.0
- NSPopUpButtonCell — Mac OS X 10.0
- NSPrinter — Mac OS X 10.0
- NSPrintInfo — Mac OS X 10.0
- NSPrintOperation — Mac OS X 10.0
- NSPrintPanel — Mac OS X 10.0
- NSProgressIndicator — Mac OS X 10.0
- NSQuickDrawView — Mac OS X 10.0
- NSResponder — Mac OS X 10.0
- NSRulerMarker — Mac OS X 10.0
- NSRulerView — Mac OS X 10.0
- NSSavePanel — Mac OS X 10.0
- NSScreen — Mac OS X 10.0
- NSScroller — Mac OS X 10.0
- NSScrollView — Mac OS X 10.0
- NSSecureTextField — Mac OS X 10.0
- NSSecureTextFieldCell — Mac OS X 10.0
- NSSimpleHorizontalTypesetter — Mac OS X 10.0
- NSSlider — Mac OS X 10.0
- NSSliderCell — Mac OS X 10.0
- NSSound — Mac OS X 10.0
- NSSpellChecker — Mac OS X 10.0
- NSSplitView — Mac OS X 10.0
- NSStatusBar — Mac OS X 10.0
- NSStatusItem — Mac OS X 10.0
- NSStepper — Mac OS X 10.0
- NSStepperCell — Mac OS X 10.0
- NSTableColumn — Mac OS X 10.0
- NSTableHeaderCell — Mac OS X 10.0
- NSTableHeaderView — Mac OS X 10.0
- NSTableView — Mac OS X 10.0
- NSTabView — Mac OS X 10.0
- NSTabViewItem — Mac OS X 10.0
- NSText — Mac OS X 10.0
- NSTextAttachment — Mac OS X 10.0
- NSTextAttachmentCell — Mac OS X 10.0
- NSTextContainer — Mac OS X 10.0
- NSTextField — Mac OS X 10.0
- NSTextFieldCell — Mac OS X 10.0
- NSTextStorage — Mac OS X 10.0
- NSTextTab — Mac OS X 10.0
- NSTextView — Mac OS X 10.0
- NSToolbar — Mac OS X 10.0
- NSToolbarItem — Mac OS X 10.0
- NSTypesetter — Mac OS X 10.0
- NSView — Mac OS X 10.0
- NSWindow — Mac OS X 10.0
- NSWindowController — Mac OS X 10.0
- NSWorkspace — Mac OS X 10.0
-
16. Application Kit Protocols
- NSAccessibility — Mac OS X 10.2
- NSChangeSpelling — Mac OS X 10.0
- NSColorPickingCustom — Mac OS X 10.0
- NSColorPickingDefault — Mac OS X 10.0
- NSComboBoxCellDataSource — Mac OS X 10.0
- NSComboBoxDataSource — Mac OS X 10.0
- NSDraggingDestination — Mac OS X 10.0
- NSDraggingInfo — Mac OS X 10.0
- NSDraggingSource — Mac OS X 10.0
- NSIgnoreMisspelledWords — Mac OS X 10.0
- NSInputServerMouseTracker — Mac OS X 10.0
- NSInputServiceProvider — Mac OS X 10.0
- NSMenuItem — Mac OS X 10.0
- NSMenuValidation — Mac OS X 10.0
- NSNibAwaking — Mac OS X 10.0
- NSOutlineViewDataSource — Mac OS X 10.0
- NSServicesRequests — Mac OS X 10.0
- NSTableDataSource — Mac OS X 10.0
- NSTextAttachmentCell — Mac OS X 10.0
- NSTextInput — Mac OS X 10.0
- NSTextStorageScripting — Mac OS X 10.0
- NSToolbarItemValidation — Mac OS X 10.0
- NSToolTipOwner — Mac OS X 10.0
- NSUserInterfaceValidations — Mac OS X 10.0
- NSValidatedUserInterfaceItem — Mac OS X 10.0
- NSWindowScripting — Mac OS X 10.0
- Method Index
- III. Appendix
- Index
- About the Authors
- Colophon
- Copyright
Product information
- Title: Cocoa in a Nutshell
- Author(s):
- Release date: May 2003
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596004620
You might also like
book
Cocoa and Objective-C: Up and Running
Build solid applications for Mac OS X, iPhone, and iPod Touch, regardless of whether you have …
book
iOS and macOS™ Performance Tuning: Cocoa®, Cocoa Touch®, Objective-C®, and Swift™
In Marcel Weiher drills down to the code level to help you systematically optimize CPU, memory, …
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, …