Jump To:
Reference Library
Cocoa is an object-oriented application environment designed for developing Mac OS X native applications. The Cocoa frameworks support rapid development and high productivity. Cocoa provides developers starting new Mac OS X projects the fastest way to full-featured implementations. Applications from other platforms can also be brought to Mac OS X quickly using Cocoa.

A guided introduction and learning path for developers new to Cocoa.   Essential information for developers using Objective-C.   Objective-C API references organized by framework.
Document Descriptions
On Off
Display

Sort by
Title
Sort by
Topic
Sort by
Resource Type
Sorted by
Date
QTKit Capture - Extracting SMPTE Timecode information from a QTSampleBuffer (HTML)
QA1600: Describes how to use the QTSampleBufferSMPTETimeAttribute with a sample buffer.
QuickTime Technical Q&As 2008-03-17
Accessibility Overview (HTML) (PDF)
Explains how to use the accessibility features built into Mac OS X.
Accessibility Guides 2008-03-11
AppleScript Language Guide (HTML) (PDF)
Defines the AppleScript scripting language. Includes many brief sample scripts.
Scripting & Automation Guides 2008-03-11
CAAnimationGroup Class Reference (HTML) (PDF)
Describes the class that groups multiple animations into a single animation.
Graphics & Imaging Reference 2008-03-11
CAOpenGLLayer Class Reference (HTML) (PDF)
Describes the class that provides a context for rendering OpenGL in a layer.
Graphics & Imaging Reference 2008-03-11
CFNetwork Programming Guide (HTML) (PDF)
Explains how to use Core Foundation networking functions to work with low-level BSD sockets.
Networking, Security Guides 2008-03-11
Cocoa Scripting Guide (HTML) (PDF)
Explains how to create scriptable Cocoa applications that use the scripting definition (sdef) format.
Design Guidelines, Scripting & Automation Guides 2008-03-11
Core Animation Cookbook (HTML) (PDF)
Demonstrates common Core Animation tasks.
Graphics & Imaging Guides 2008-03-11
Cursor Management (HTML) (PDF)
Explains how to set the cursor and handle cursor-update events in Cocoa applications.
Events & Other Input, User Experience Guides 2008-03-11
Foundation Data Types Reference (HTML) (PDF)
Describes the data types defined in the Foundation framework not described in individual classes.
Data Management, Objective-C Language Reference 2008-03-11
Garbage Collection Programming Guide (HTML) (PDF)
Describes the garbage collection system for Cocoa.
Design Guidelines, Objective-C Language, Performance, Runtime Architecture Guides 2008-03-11
Managing QTCompressionOptions - An overview of the QTCompressionOptionsWindow sample (HTML)
TN2219: Introductory overview of the QTCompressionOptionsWindow sample demonstrating one way to manage QTCompressionOptions objects.
QuickTime Technical Notes 2008-03-11
NSDocument Class Reference (HTML) (PDF)
Describes the abstract class that defines the interface for documents, objects that manage data displayed in windows.
Design Guidelines Reference 2008-03-11
NSDocumentController Class Reference (HTML) (PDF)
Describes the class used to manage an application's documents.
Design Guidelines Reference 2008-03-11
NSFontDescriptor Class Reference (HTML) (PDF)
Describes the class that provides a mechanism to describe a font with a dictionary of attributes.
Objective-C Language Reference 2008-03-11
NSMethodSignature Class Reference (HTML) (PDF)
Describes the class whose instances record type information for the arguments and return value of a method.
Objective-C Language Reference 2008-03-11
NSPersistentStoreCoordinator Class Reference (HTML) (PDF)
Describes the class used to mediate between persistent stores and managed object contexts in a Core Data application.
Data Management Reference 2008-03-11
NSPrintInfo Class Reference (HTML) (PDF)
Describes the class for managing print job information.
Printing Reference 2008-03-11
NSProgressIndicator Class Reference (HTML) (PDF)
Describes the class used to display a progress indicator that shows that a lengthy task is under way.
User Experience Reference 2008-03-11
NSSearchFieldCell Class Reference (HTML) (PDF)
Describes the class for managing search-field cells.
User Experience Reference 2008-03-11
NSSet Class Reference (HTML) (PDF)
Describes the class for managing an immutable set of objects; a set is an unordered collection of distinct elements.
Data Management Reference 2008-03-11
NSString Class Reference (HTML) (PDF)
Describes the class used to define and operate on immutable strings.
Data Management Reference 2008-03-11
NSURLCache Class Reference (HTML) (PDF)
Describes the class that manages cached responses and data from URL load requests.
Internet & Web, Networking Reference 2008-03-11
NSView Class Reference (HTML) (PDF)
Describes the class that defines the basic drawing, event-handling, and printing architecture of an application.
Events & Other Input, Graphics & Imaging, Printing Reference 2008-03-11
Scripting Bridge Programming Guide for Cocoa (HTML) (PDF)
Describes the Scripting Bridge technology, which bridges OSA-compliant applications to Objective-C, and explains how to use it in Cocoa programs.
Scripting & Automation Guides 2008-03-11
Suppressing the "unexpectedly quit" alert (HTML)
QA1288: Describes how to suppress the "unexpectedly quit" alert.
User Experience Technical Q&As 2008-03-11
CALayer Class Reference (HTML) (PDF)
Describes the class that defines the basic drawing, timespace, and animation management for Core Animation.
Graphics & Imaging Reference 2008-03-10
CarbonCocoaTempConverter (HTML) (DMG) (ZIP)
Demonstrates how to integrate Carbon and Cocoa user interfaces in the same Cocoa application.
Events & Other Input, User Experience Sample Code 2008-03-10
PhotoSearch (HTML) (DMG) (ZIP)
Demonstrates advanced controls and cells. Custom drawing, hit testing, tracking, editing, expansion tooltips, tracking areas.
Data Management, Events & Other Input, User Experience Sample Code 2008-03-05
SBSendEmail (HTML) (DMG) (ZIP)
Using the Scripting Bridge to tell Mail.app to send an email message with an optional attachment.
Interapplication Communication, Internet & Web, Scripting & Automation Sample Code 2008-02-28
Common mistakes with delegation in Cocoa (HTML)
QA1554: The two most common errors that lead to a delegate method not being received.
Design Guidelines, Objective-C Language Technical Q&As 2008-02-27
Disabling text completion in an NSTextField (HTML)
QA1553: Shows how to implement a delegate method provided by NSControl to disable automatic text completion.
Text & Fonts, User Experience Technical Q&As 2008-02-27
NSDate - Natural language date parsing in early Leopard releases (HTML)
QA1581: Acknowledges a regression in +dateWithNaturalLanguageString: behavior of NSDate which is fixed as of 10.5.2.
User Experience Technical Q&As 2008-02-27
FSMegaInfo (HTML) (DMG) (ZIP)
Prints information about various file system objects; helpful when debugging VFS plug-ins.
File Management Sample Code 2008-02-25
QTCompressionOptionsWindow (HTML) (DMG) (ZIP)
Demonstrates how easy it is to manage QTCompressionOptions instances with a user interface.
QuickTime Sample Code 2008-02-22
Customizing Process Stack Size (HTML)
QA1419: Describes methods for setting the stack size of a process and/or thread.
Process Management, Resource Management Technical Q&As 2008-02-20
Application Kit Functions Reference (HTML) (PDF)
Describes C functions that provide supporting functionality for the classes and protocols in the Application Kit framework.
Objective-C Language Reference 2008-02-08
Atomic Store Programming Topics (HTML) (PDF)
Describes how to use the Core Data atomic store API to create persistent stores that use a custom format.
Data Management Guides 2008-02-08
Core Data Model Versioning and Data Migration Programming Guide (HTML) (PDF)
Explains the managed object model versioning and data migration features of Core Data.
Data Management Guides 2008-02-08
Core Data Programming Guide (HTML) (PDF)
Explains how to manage objects using the Core Data framework.
Data Management, Design Guidelines Guides 2008-02-08
Font Handling (HTML) (PDF)
Explains the Cocoa font management system and how users select fonts.
Text & Fonts Guides 2008-02-08
Low-Level Core Data Tutorial (HTML) (PDF)
A hands-on guide to creating a command-line utility using low-level features of Core Data.
Data Management, Design Guidelines Guides 2008-02-08
Low-Level File Management Programming Topics (HTML) (PDF)
Explains the low-level ways Cocoa applications can interact with files.
File Management Guides 2008-02-08
Memory Management Programming Guide for Cocoa (HTML) (PDF)
Explains how to allocate and deallocate objects in Cocoa.
Design Guidelines, Objective-C Language Guides 2008-02-08
Model Object Implementation Guide (HTML) (PDF)
Describes issues relating to the design and implementation of model objects
Design Guidelines Guides 2008-02-08
NSAnimationContext Class Reference (HTML) (PDF)
Describes the class that provides nested transaction support for animating views.
Graphics & Imaging Reference 2008-02-08
NSAutoreleasePool Class Reference (HTML) (PDF)
Describes the class used to instantiate pools of objects to be automatically released.
Objective-C Language, Performance Reference 2008-02-08
NSConnection Class Reference (HTML) (PDF)
Describes the class for managing proxy connections when using distributed objects.
Interapplication Communication Reference 2008-02-08
NSCursor Class Reference (HTML) (PDF)
Describes the class used to manage the appearance of the cursor.
User Experience Reference 2008-02-08
NSData Class Reference (HTML) (PDF)
Describes the class used to provide an immutable object-oriented wrapper for a byte buffer.
Data Management Reference 2008-02-08
NSDictionary Class Reference (HTML) (PDF)
Describes the class for managing associations of keys and values.
Data Management, Design Guidelines Reference 2008-02-08
NSEntityDescription Class Reference (HTML) (PDF)
Describes the class used to specify entities in a Core Data managed object model.
Objective-C Language Reference 2008-02-08
NSFetchRequest Class Reference (HTML) (PDF)
Describes the class used to describe search criteria used to retrieve data from a persistent store in Core Data.
Data Management Reference 2008-02-08
NSLocale Class Reference (HTML) (PDF)
Describes the class used to encapsulate information about linguistic, cultural, and technological conventions and standards.
Internationalization, User Experience Reference 2008-02-08
NSLock Class Reference (HTML) (PDF)
Describes the class for managing mutex-based locks.
Process Management Reference 2008-02-08
NSMenu Class Reference (HTML) (PDF)
Describes the class for managing an application's menus.
User Experience Reference 2008-02-08
NSMenuItem Class Reference (HTML) (PDF)
Describes the class for creating and managing command items in menus.
User Experience Reference 2008-02-08
NSNetService Class Reference (HTML) (PDF)
Describes the class used to publish or consume a network service using multicast DNS.
Interapplication Communication, Internet & Web, Networking Reference 2008-02-08
NSNumber Class Reference (HTML) (PDF)
Describes the class whose instances encapsulate C scalar values of types such as int, unsigned int, long, double, and Boolean.
Data Management Reference 2008-02-08
NSPasteboard Class Reference (HTML) (PDF)
Describes the class used to support pasteboard operations.
Interapplication Communication Reference 2008-02-08
NSPersistentDocument Class Reference (HTML) (PDF)
Describes the class used to to define and operate on a document that integrates into the Core Data framework.
Data Management, Design Guidelines Reference 2008-02-08
NSPersistentDocument Core Data Tutorial (HTML) (PDF)
Step-by-step instructions for building a simple but functionally rich application using NSPersistentDocument and Cocoa bindings.
Data Management, Design Guidelines Guides 2008-02-08
NSRuleEditor Class Reference (HTML) (PDF)
Describes the class used to present and manage a graphical rule editor.
User Experience Reference 2008-02-08
NSRunLoop Class Reference (HTML) (PDF)
Describes the class whose instances manage input sources.
Events & Other Input, Performance Reference 2008-02-08
NSTimeZone Class Reference (HTML) (PDF)
Describes the abstract class used to define the behavior of time zone objects.
Data Management, Internationalization Reference 2008-02-08
Number and Value Programming Topics for Cocoa (HTML) (PDF)
Explains how to use Cocoa object wrappers for primitive C data types.
Data Management Guides 2008-02-08
Quick Look Programming Guide (HTML) (PDF)
Describes the purporse and architecture of Quick Look generators and explains how to create them.
User Experience Guides 2008-02-08
Re-enabling dragging from NSTableView to other applications (HTML) (日本語 HTML)
QA1220: Explains how to re-enable drag-and-drop from NSTableViews to other applications
Interapplication Communication, User Experience Technical Q&As 2008-02-08
Search Fields (HTML) (PDF)
Explains how to use Cocoa search fields.
User Experience Guides 2008-02-08
Security Overview (HTML) (PDF)
An introduction to computer security concepts and the Mac OS X security APIs.
Security Guides 2008-02-08
Text Editing Programming Guide for Cocoa (HTML) (PDF)
Explains how to control the behavior of the Cocoa text system as it performs text editing.
Text & Fonts Guides 2008-02-08
Threading Programming Guide (HTML) (PDF)
Explains how to use threads in Cocoa applications.
Performance, Process Management Guides 2008-02-08
OpenGL Filter Basics Cocoa (HTML) (DMG) (ZIP)
How to use Objective-C and MVC design patterns in installing and utilizing filters in an OpenGL rendering pipeline
Games, Graphics & Imaging Sample Code 2008-02-06
Connecting the Font Menu in Interface Builder 3 (HTML)
QA1571: How to connect and configure the Font/Format menus in Interface Builder 3.
Design Guidelines, Text & Fonts, Tools, User Experience Technical Q&As 2008-01-21
Enabling the application menu's "Preferences" menu item on Mac OS X (HTML)
QA1552: Describes the two things you need to implement to enable the "Preferences" menu item on Mac OS X.
User Experience Technical Q&As 2008-01-21
QTAudioContextInsert (HTML) (DMG) (ZIP)
Demonstrates use of Audio Context Insert APIs to perform custom processing on QuickTime's audio stream.
Audio, QuickTime Sample Code 2008-01-21
IconCollection (HTML) (DMG) (ZIP)
Demonstrates how to use NSCollectionView along with NSWorkspace and named images to determine its content.
User Experience Sample Code 2008-01-18
With and Without Bindings (HTML) (DMG) (ZIP)
Illustrates the adoption of Cocoa Bindings and refactoring using a subclass of NSArrayController.
Data Management, Design Guidelines Sample Code 2008-01-04
DictionaryController (HTML) (DMG) (ZIP)
"DictionaryController" is a Cocoa application that demonstrates various ways in how to use the NSDictionaryController class.
Data Management, User Experience Sample Code 2007-12-20
GeekGameBoard (HTML) (DMG) (ZIP)
Shows how to use Core Animation for the user interface of a board or card game.
Games, Graphics & Imaging Sample Code 2007-12-19
How do I get the hexadecimal value of an NSColor object? (HTML)
QA1576: Describes how to convert an NSColor object to its Hexadecimal value.
Graphics & Imaging, Objective-C Language Technical Q&As 2007-12-19
ScriptingBridgeiCal (HTML) (DMG) (ZIP)
Adding/updating events in iCal using Scripting Bridge.
Interapplication Communication, Scripting & Automation Sample Code 2007-12-13
Automator Programming Guide (HTML) (PDF)
Describes the concepts and tasks for developing actions, which are bundles loaded by the Automator application.
Apple Applications, Tools Guides 2007-12-11
Boinx Starts with Sample Code: FotoMagico Is a Powerful Digital Slideshow (HTML)
Starting with Apple sample code, tools and technologies, Boinx wrote FotoMagico in a matter of months.
General, Graphics & Imaging Articles 2007-12-11
Button Programming Topics for Cocoa (HTML) (PDF)
Explains how to use Cocoa buttons.
User Experience Guides 2007-12-11
CAConstraintLayoutManager Class Reference (HTML) (PDF)
Describes the class that provides constraint-based relative layout to a layer's sublayers.
Graphics & Imaging Reference 2007-12-11
CATextLayer Class Reference (HTML) (PDF)
Describes the class that simplifies rendering text in a layer.
Graphics & Imaging Reference 2007-12-11
CIFilter Class Reference (HTML) (PDF)
Describes the class that processes image data and produces a Core Image image as output.
Graphics & Imaging Reference 2007-12-11
Core Data Release Notes (HTML)
Describes features, issues, and workarounds related to Mac OS X v10.5 and its support of Core Data.
Data Management, General Release Notes 2007-12-11
Leopard Technology Series for Developers: Graphics & Media Overview (HTML)
Describes Leopard's graphics and media capabilities.
Graphics & Imaging Articles 2007-12-11
Leopard Technology Series for Developers: Objective-C 2.0 Overview (HTML)
Describes features and capabilities introduced in Objective-C 2.0.
Objective-C Language, Tools Articles 2007-12-11
NSAccessibility Protocol Reference (HTML) (PDF)
Describes the informal protocol that Cocoa classes must implement to make themselves available to an external assistive application.
Accessibility Reference 2007-12-11
NSButtonCell Class Reference (HTML) (PDF)
Describes the class that implements the functionality of a button.
Events & Other Input, User Experience Reference 2007-12-11
NSCollectionView Class Reference (HTML) (PDF)
Describes the class used for creating groups of views from a prototype view.
User Experience Reference 2007-12-11
NSFileManager Class Reference (HTML) (PDF)
Describes the class used to perform generic file-system operations.
File Management, Resource Management Reference 2007-12-11
NSObjectController Class Reference (HTML) (PDF)
Describes the class that is used with Cocoa bindings to access and modify model values.
Data Management, Design Guidelines Reference 2007-12-11
NSThread Class Reference (HTML) (PDF)
Describes the class for spawning secondary threads of execution.
Process Management Reference 2007-12-11
NSURLResponse Class Reference (HTML) (PDF)
Describes the class that encapsulates the response from a server to a URL load request.
Internet & Web, Networking, Objective-C Language Reference 2007-12-11
NSUserDefaults Class Reference (HTML) (PDF)
Describes the class for managing preference information.
Data Management, User Experience Reference 2007-12-11
Object-Oriented Programming with Objective-C (HTML) (PDF)
Describes object-oriented programming from the perspective of an Objective-C developer.
Design Guidelines, Objective-C Language Guides 2007-12-11