[ Team LiB ] • Table of Contents • Index • Reviews • Reader Reviews • Errata Cocoa in a Nutshell By Michael Beam, James Duncan Davidson Publisher: O'Reilly Date Published : May 2003 ISBN: 0-596-00462-1 Pages: 566 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 A complement to Apple's documentation, it is the only reference to the classes, functions, types, constants, protocols, and methods that make up Cocoa's Foundation and Application Kit frameworks, based on the Jaguar release (Mac OS X 10.2) [ Team LiB ] [ Team LiB ] • Table of Contents • Index • Reviews • Reader Reviews • Errata Cocoa in a Nutshell By Michael Beam, James Duncan Davidson Publisher: O'Reilly Date Published : May 2003 ISBN: 0-596-00462-1 Pages: 566 Copyright Preface What Is Cocoa? How This Book Is Organized Conventions Used in This Book How the Quick Reference Was Generated Comments and Questions Acknowledgments Part I: Introducing Cocoa Chapter Objective-C Section 1.1 Objects Section 1.2 Messaging Section 1.3 Classes Section 1.4 Creating Object Instances Section 1.5 Memory Management Section 1.6 Deallocating Objects Section 1.7 Categories Section 1.8 Naming Conventions Chapter Foundation Section 2.1 Data Section 2.2 Key-Value Coding Section 2.3 Working with Files Section 2.4 Bundles and Resource Management Section 2.5 Archiving Objects Section 2.6 User Defaults Section 2.7 Notifications Section 2.8 Operating System Interaction Section 2.9 Threaded Programming Chapter The Application Kit Section 3.1 AppKit Design Patterns Section 3.2 Nibs Section 3.3 Application Architecture Section 3.4 Controls Section 3.5 Menus Section 3.6 Sheets Section 3.7 Drawers Section 3.8 Toolbars Section 3.9 Event Handling Section 3.10 Document-Based Applications Chapter Drawing and Imaging Section 4.1 The Role of Quartz Section 4.2 Coordinate Systems Section 4.3 Graphics Contexts Section 4.4 Working with Paths Section 4.5 Drawing Text Section 4.6 Working with Color Section 4.7 Working with Images Section 4.8 Transformations Chapter Text Handling Section 5.1 Text System Architecture Section 5.2 Assembling the Text System Chapter Networking Section 6.1 Hosts Section 6.2 URL Resources Section 6.3 Rendezvous Network Services Section 6.4 Sockets Section 6.5 NSFileHandle Chapter Interapplication Communication Section 7.1 NSPipe Chapter Other Frameworks Section 8.1 AddressBook Section 8.2 The Message Framework Section 8.3 Disc Recording Frameworks Section 8.4 Third-Party Frameworks Part II: API Quick Reference Chapter Foundation Types and Constants Section 9.1 Data Types Section 9.2 Enumerations Section 9.3 Global Variables Section 9.4 Constants Section 9.5 Exceptions Chapter 10 Foundation Functions Section 10.1 Assertions Section 10.2 Bundles Section 10.3 Byte Ordering Section 10.4 Decimals Section 10.5 Java Setup Section 10.6 Hash Tables Section 10.7 HFS File Types Section 10.8 Map Tables Section 10.9 Object Allocation Section 10.10 Objective-C Runtime Section 10.11 Path Utilities Section 10.12 Points Section 10.13 Ranges Section 10.14 Rects Section 10.15 Sizes Section 10.16 Uncaught Exceptions Section 10.17 Zones Chapter 11 Application Kit Types and Constants Section 11.1 Data Types Section 11.2 Enumerations Section 11.3 Global Variables Section 11.4 Exceptions Chapter 12 Application Kit Functions Section 12.1 Accessibility Section 12.2 Applications Section 12.3 Events Section 12.4 Fonts Section 12.5 Graphics: General Section 12.6 Graphics: Window Depth Section 12.7 Interface Styles Section 12.8 OpenGL Section 12.9 Panels Section 12.10 Pasteboards Section 12.11 System Beep Chapter 13 Foundation Classes NSAppleEventDescriptor NSAppleEventManager NSAppleScript NSArchiver NSArray NSAssertionHandler NSAttributedString NSAutoreleasePool NSBundle NSCalendarDate NSCharacterSet NSClassDescription NSCloneCommand NSCloseCommand NSCoder NSConditionLock NSConnection NSCountCommand NSCountedSet NSCreateCommand NSData NSDate NSDateFormatter NSDecimalNumber NSDecimalNumberHandler NSDeleteCommand NSDeserializer NSDictionary NSDirectoryEnumerator NSDistantObject NSDistantObjectRequest NSDistributedLock NSDistributedNotificationCenter NSEnumerator NSException NSExistsCommand NSFileHandle NSFileManager NSFormatter NSGetCommand NSHost NSIndexSpecifier NSInvocation NSKeyedArchiver NSKeyedUnarchiver NSLock NSLogicalTest NSMachBootstrapServer NSMachPort NSMessagePort NSMessagePortNameServer NSMethodSignature NSMiddleSpecifier NSMoveCommand NSMutableArray NSMutableAttributedString NSMutableCharacterSet NSMutableData NSMutableDictionary NSMutableSet NSMutableString NSNameSpecifier NSNetService NSNetServiceBrowser NSNotification NSNotificationCenter NSNotificationQueue NSNull NSNumber NSNumberFormatter NSObject NSPipe NSPort NSPortCoder NSPortMessage NSPortNameServer NSPositionalSpecifier NSProcessInfo NSPropertyListSerialization NSPropertySpecifier NSProtocolChecker NSProxy NSQuitCommand NSRandomSpecifier NSRangeSpecifier NSRecursiveLock NSRelativeSpecifier NSRunLoop NSScanner NSScriptClassDescription NSScriptCoercionHandler NSScriptCommand NSScriptCommandDescription NSScriptExecutionContext NSScriptObjectSpecifier NSScriptSuiteRegistry NSScriptWhoseTest NSSerializer NSSet NSSetCommand NSSocketPort NSSocketPortNameServer NSSpecifierTest NSSpellServer NSString NSTask NSThread NSTimer NSTimeZone NSUnarchiver NSUndoManager NSUniqueIDSpecifier NSURL NSURLHandle NSUserDefaults NSValue NSWhoseSpecifier Chapter 14 Foundation Protocols NSCoding NSComparisonMethods NSCopying NSDecimalNumberBehaviors NSKeyValueCoding NSLocking NSMutableCopying NSObjCTypeSerializationCallBack NSObject NSScriptingComparisonMethods NSScriptKeyValueCoding NSScriptObjectSpecifiers NSURLHandleClient Chapter 15 Application Kit Classes NSActionCell NSAffineTransform NSApplication NSBezierPath NSBitmapImageRep NSBox NSBrowser NSBrowserCell NSButton NSButtonCell NSCachedImageRep NSCell NSClipView NSColor NSColorList NSColorPanel NSColorPicker NSColorWell NSComboBox NSComboBoxCell NSControl NSCursor NSCustomImageRep NSDocument NSDocumentController NSDrawer NSEPSImageRep NSEvent NSFileWrapper NSFont NSFontManager NSFontPanel NSForm NSFormCell NSGlyphInfo NSGraphicsContext NSHelpManager NSImage NSImageCell NSImageRep NSImageView NSInputManager NSInputServer NSLayoutManager NSMatrix NSMenu NSMenuItem NSMenuItemCell NSMenuView NSMovie NSMovieView NSMutableParagraphStyle NSNibConnector NSNibControlConnector NSNibOutletConnector NSOpenGLContext NSOpenGLPixelFormat NSOpenGLView NSOpenPanel NSOutlineView NSPageLayout NSPanel NSParagraphStyle NSPasteboard NSPDFImageRep NSPICTImageRep NSPopUpButton NSPopUpButtonCell NSPrinter NSPrintInfo NSPrintOperation NSPrintPanel NSProgressIndicator NSQuickDrawView NSResponder NSRulerMarker NSRulerView NSSavePanel NSScreen NSScroller NSScrollView NSSecureTextField NSSecureTextFieldCell NSSimpleHorizontalTypesetter NSSlider NSSliderCell NSSound NSSpellChecker NSSplitView NSStatusBar NSStatusItem NSStepper NSStepperCell NSTableColumn NSTableHeaderCell NSTableHeaderView NSTableView NSTabView NSTabViewItem NSText NSTextAttachment NSTextAttachmentCell NSTextContainer NSTextField NSTextFieldCell NSTextStorage NSTextTab NSTextView NSToolbar NSToolbarItem NSTypesetter NSView NSWindow NSWindowController NSWorkspace Chapter 16 Application Kit Protocols NSAccessibility NSChangeSpelling NSColorPickingCustom NSColorPickingDefault NSComboBoxCellDataSource NSComboBoxDataSource NSDraggingDestination NSDraggingInfo NSDraggingSource NSIgnoreMisspelledWords NSInputServerMouseTracker NSInputServiceProvider NSMenuItem NSMenuValidation NSNibAwaking NSOutlineViewDataSource NSServicesRequests NSTableDataSource NSTextAttachmentCell NSTextInput NSTextStorageScripting NSToolbarItemValidation NSToolTipOwner NSUserInterfaceValidations NSValidatedUserInterfaceItem NSWindowScripting Method Index A B C D E F G H I J K L M N O P Q R S T U V W XYZ Part III: Appendix Appendix A Appendix: Resources for Cocoa Developers Section A.1 Apple Documentation Section A.2 Related Books Section A.3 Web Sites Section A.4 Mailing Lists Section A.5 Partnering with Apple Colophon Index [ Team LiB ] ... These instances are available within the class that declares them and within classes that inherit from them This is a variable's default scope @public These instances are available to any class and... architecture, and other design patterns that are important in Cocoa development Chapter 4, Drawing and Imaging This chapter discusses Cocoa' s two-dimensional (2D) graphics capabilities available in the Application... or expanded functionality Like Java and Smalltalk, but unlike C++, Objective-C is a single inheritance language, meaning that a class can inherit functionality only from a single class A class