1. Trang chủ
  2. » Khoa Học Tự Nhiên

Coco in a nutshell

1K 79 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 1.042
Dung lượng 4,61 MB

Nội dung

This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] • • • • • Table of Contents Index Reviews Reader Reviews Errata Cocoa in a Nutshell By Michael Beam, James Duncan Davidson Publisher: O'Reilly Date : May 2003 Published 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 ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] • • • • • Table of Contents Index Reviews Reader Reviews Errata Cocoa in a Nutshell By Michael Beam, James Duncan Davidson Publisher: O'Reilly Date : May 2003 Published 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 This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com Section 2.4 Section 2.5 Section 2.6 Section 2.7 Section 2.8 Section 2.9 Bundles and Resource Management Archiving Objects User Defaults Notifications Operating System Interaction 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 This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com Section 9.2 Section 9.3 Section 9.4 Section 9.5 Enumerations Global Variables Constants 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 This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com 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 This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com 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 This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com 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 This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com 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 This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com 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 This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com 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 ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com NSStringFromRect function NSStringFromSelector function NSStringFromSize function NSSwapBigDoubleToHost function NSSwapBigFloatToHost function NSSwapBigIntToHost function NSSwapBigLongLongToHost function NSSwapBigLongToHost function NSSwapBigShortToHost function NSSwapDouble function NSSwapFloat function NSSwapHostDoubleToBig function NSSwapHostDoubleToLittle function NSSwapHostFloatToBig function NSSwapHostFloatToLittle function NSSwapHostIntToBig function NSSwapHostIntToLittle function NSSwapHostLongLongToBig function NSSwapHostLongLongToLittle function NSSwapHostLongToBig function NSSwapHostLongToLittle function NSSwapHostShortToBig function NSSwapHostShortToLittle function NSSwapInt function NSSwapLittleDoubleToHost function NSSwapLittleFloatToHost function NSSwapLittleIntToHost function NSSwapLittleLongLongToHost function NSSwapLittleLongToHost function NSSwapLittleShortToHost function NSSwapLong function NSSwapLongLong function NSSwappedDouble data type NSSwappedFloat data type NSSwapShort function NSTableColumn class (Application Kit) NSTableDataSource protocol (Application Kit) NSTableHeaderCell class (Application Kit) NSTableHeaderView class (Application Kit) NSTableView class (Application Kit) NSTableViewDropOperation data type NSTabState data type NSTabView class (Application Kit) NSTabViewItem class (Application Kit) NSTabViewItemAuxiliaryOpaque data type NSTabViewType data type NSTask class 2nd NSTemporaryDirectory function NSTestComparisonOperation data type NSText class Application Kit enumeration 2nd NSTextAlignment data type NSTextAttachment (Attachment Character) enumeration NSTextAttachment class (Application Kit) NSTextAttachmentCell class (Application Kit) NSTextAttachmentCell protocol (Application Kit) NSTextContainer class 2nd 3rd Application Kit This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com NSTextField class (Application Kit) NSTextFieldBezelStyle data type NSTextFieldCell class (Application Kit) NSTextInput protocol (Application Kit) NSTextStorage class 2nd 3rd Application Kit enumeration NSTextStorage subclass NSTextStorageScripting protocol (Application Kit) NSTextTab class (Application Kit) NSTextTabType data type NSTextView class 2nd Application Kit NSThread class 2nd sleepUntilDate: method NSTickMarkPosition data type NSTIFFCompression data type NSTimeInterval data type NSTimer class NSTimeZone class 2nd NSTitlePosition data type NSToolbar class Application Kit NSToolbarDisplayMode data type NSToolbarItem class Application Kit global variables NSToolbarItemValidation protocol (Application Kit) NSToolbarSizeMode data type NSToolTipOwner protocol (Application Kit) NSToolTipTag data type NSTrackingRectTag data type NSTypesetter class (Application Kit) NSTypesetterBehavior data type NSTypesetterGlyphInfo data type NSUnarchiver class 2nd NSUncaughtExceptionHandler data type NSUndoCloseGroupingRunLoopOrdering enumeration NSUndoManager class NSUnionRange function NSUnionRect function NSUniqueIDSpecifier class NSUnRegisterServicesProvider function NSUpdateDynamicServices function NSURL class 2nd 3rd global variable methods NSURLHandle class 2nd 3rd NSURLHandle FTP Property Keys global variable NSURLHandle HTTP Property Keys global variable NSURLHandleClient protocol NSURLHandleStatus data type NSUsableScrollerParts data type NSUserDefaults class 2nd global variable NSUserInterfaceValidations protocol (Application Kit) NSUserName function NSValidatedUserInterfaceItem protocol (Application Kit) NSValue class This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com NSView class 2nd 3rd Application Kit enumeration NSWhoseSpecifier class NSWhoseSubelementIdentifier data type NSWidth function NSWindingRule data type NSWindow class 2nd Application Kit enumeration global variables 2nd NSWindowAuxiliaryOpaque data type NSWindowButton data type NSWindowController class Application Kit NSWindowDepth data type NSWindowList function NSWindowListForContext function NSWindowOrderingMode data type NSWindowScripting protocol (Application Kit) NSWorkspace class Application Kit global variables 2nd NSWritingDirection data type NSZone data type NSZoneCalloc function NSZoneFree function NSZoneFromPointer function NSZoneMalloc function NSZoneName function NSZoneRealloc function number precision numeric data types [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] object allocation functions object specifiers, defined object tree object-oriented programming (OOP) Objective-C 2nd naming conventions runtime functions objects archiving 2nd arrays checking that conforms to protocol cloned closing collection 2nd comparing 2nd copying counting creating instances data, altering deallocating defined deleting distributed 2nd distributed, threads and first-class help manager locally representing lock modifying sets multiple-value mutable copies ordered collections paragraph style property list 2nd proxies proxy for remote, connecting to scanner used by multiple applications observers (notification center) Omni Frameworks OmniAppKit OmniBase OmniFoundation OmniHTML OmniNetworking OWF Omni Group, The web site Open panel OpenGL API OpenGL functions (Application Kit) outlets actions and defined 2nd This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com outline view overriding a superclass method [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] Page Layout panel page-view paginating text panel functions (Application Kit) paragraph style parent window, defined pasteboard functions (Application Kit) pasteboard server path flatness path utilities functions PDF image rendering persistent domains point functions pop-up button interface port name servers 2nd port registration services PPD file presentation layer primary identifier print job information Print panel Print Preview window printf-style formatting web site process discovery Project Builder, defined property keys (AddressBook framework) property list objects 2nd 3rd proposed rectangle protocols Application Kit defining Foundation proxies [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] Quartz 2D API composite images and Compositor defined path-based drawing API querying the contents of the array quick reference, how it was generated QuickDraw drawing commands QuickTime movie data [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] range functions rect functions reference counting mechanism Rendezvous network services web site resources for Cocoa developers Apple documentation Apple partnering programs mailing lists related books web sites resources, application loading resources responder chain 2nd pattern, defined retrieve objects from an archive root class 2nd rotating ruler view run loops 2nd 3rd defined [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] scalar data items scaling scanners 2nd scoping instance variables screen readers script suites scriptable classes scripting 2nd 3rd commands data types language reference form statements scroll view 2nd scrolling Search Types enumeration secure text selectors, defined serialization and deserialization operations server setup set setAction: method setTarget: method sheet funtions sheets single inheritance language singleton design pattern, defined size functions sleepUntilDate: method slider controls socket file descriptors sockets sound file player special variables spellchecking 2nd Spelling panel 2nd static typing, defined status bars Stepwise (Softtrak) web site String Encodings enumeration strings altering contents and attributes altering portions of attributes 2nd comparing manipulating subprocesses subviews superclass methods, overriding superview symbolic marker display [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] target/action pattern 2nd defined tasks text drawing manual assembly of components text attachments text handling 2nd assembling classes layout text input text layout multicolumn text multiple simultaneous layouts paginating scenarios simple text storage text system class hierarchy textual representations of cells 2nd third-party frameworks thread communication thread locking thread locks threaded programming threads, input resources time zones 2nd toolbars 2nd item identifiers methods tracking rectangles transform convenience constructor transformations translating [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] uncaught exceptions undo and redo system Unicode characters 2nd 3rd catalog web site unique ID Unix pipes unordered collections URL resources 2nd user defaults 2nd [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] variables global Application Kit Foundation special vector-based paths view class view hierarchy view, defined volatile domains [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] web sites for Cocoa developers winding rule 2nd even-odd non-zero window class workspace services wrapper, around a C data buffer wrappers, file [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com [ Team LiB ] [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [Z] Zero Constants global variable zero-configuration networking (zeroconf) zones, memory [ Team LiB ] This document is created with a trial version of CHM2PDF Pilot http://www.colorpilot.com Brought to You by Like the book? Buy it! ... 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... declarations 1.3.3 Special Variables In addition to a class's instance variables, several other instance variables are defined within the scope of instance methods These variables are: isa Defined... Defining a Class In Objective-C, classes are defined in two parts, usually separated into two different files: An interface, which declares a class's methods and instance variables, and names

Ngày đăng: 25/03/2019, 15:37