Jump To:
Leopard 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
Sorted by
Topic
Sort by
Resource Type
Sort by
Date
NSDateFormatter Class Reference (HTML) (PDF)
Describes a date formatter.
Internationalization Reference 2008-11-19
NSLocale Class Reference (HTML) (PDF)
Describes a locale.
Internationalization Reference 2008-02-08
NSTimeZone Class Reference (HTML) (PDF)
Describes a time zone.
Internationalization Reference 2008-02-08
NumberInput_IMKit_Sample (HTML) (DMG) (ZIP)
Illustrates an input method that uses the Mac OS X 10.5 InputMethodKit framework.
Internationalization Sample Code 2008-03-17
Obtaining the localized application name in Cocoa (HTML)
QA1544: Describes how to obtain several versions of the application name in Cocoa.
Internationalization Technical Q&As 2007-09-21
Apple Applications Schema Reference (HTML) (PDF)
Describes the schemas used by Apple Applications to sync records such as contacts, calendars, and bookmarks.
Internet & Web Reference 2007-10-31
Availability of Quartz Composer Patches in Web Kit (HTML)
QA1505: Details which Quartz Composer patches are available in Web Kit
Internet & Web Technical Q&As 2007-03-05
CallJS (HTML) (DMG) (ZIP)
Illustrates how to call JavaScripts on a web page in a WebView from Objective-C and vice versa
Internet & Web Sample Code 2007-03-09
CarbonCocoaCoreImageTab (HTML) (DMG) (ZIP)
Carbon-based application creates a Cocoa-based web window which used CoreImage filters to transition between tabbed WebViews
Internet & Web Sample Code 2006-07-25
Debugging a WebKit Plug-in in Xcode (HTML)
QA1500: Directions for debugging a WebKit plug-in in Xcode.
Internet & Web Technical Q&As 2007-06-05
Getting a Packet Trace (HTML) (日本語 HTML)
QA1176: Lists tools available for looking at the network packets on the wire.
Internet & Web Technical Q&As 2008-06-03
Instant Message Framework Reference (HTML) (PDF)
Describes the API for providing iChat presence information to Cocoa applications and using iChat Theater.
Internet & Web Reference 2007-07-08
Instant Message Programming Guide (HTML) (PDF)
Explains how to access iChat services and buddies and use iChat Theater through code samples.
Internet & Web Guides 2007-10-31
Integrating Sync Services into Your Application (HTML)
Learn how to sync any kind of data in your application using Sync Services.
Internet & Web Articles 2005-06-06
JavaFrameEmbedding example (HTML) (DMG) (ZIP)
Small Cocoa application that demonstrates how to use JavaFrameEmbedding.framework
Internet & Web Sample Code 2007-06-12
JSInterpreter (HTML) (DMG) (ZIP)
Simple JavaScript interpreter
Internet & Web Sample Code 2007-06-06
JSPong (HTML) (DMG) (ZIP)
Pong with JavaScript AI
Internet & Web Sample Code 2007-06-06
LSMSmartCategorizer (HTML) (DMG) (ZIP)
Demonstrates the Latent Semantic Mapping (LSM) framework by automatically categorize RSS feeds.
Internet & Web Sample Code 2007-05-09
NewsReader (HTML) (DMG) (ZIP)
Demonstrates use of the Publication Subscription framework to create a simple RSS reader application.
Internet & Web Sample Code 2007-06-01
NSCachedURLResponse Class Reference (HTML) (PDF)
Describes a cached response to a URL load request.
Internet & Web Reference 2008-05-02
NSHTTPCookie Class Reference (HTML) (PDF)
Describes an opaque set of data that represents state or configuration.
Internet & Web Reference 2008-11-13
NSHTTPCookieStorage Class Reference (HTML) (PDF)
Describes a collection of cookies shared across all applications.
Internet & Web Reference 2006-05-23
NSHTTPURLResponse Class Reference (HTML) (PDF)
Describes a response to an HTTP request.
Internet & Web Reference 2006-05-23
NSMutableURLRequest Class Reference (HTML) (PDF)
Describes a mutable request for a resource identified by a URL.
Internet & Web Reference 2006-05-23
NSNetService Class Reference (HTML) (PDF)
Describes a network service that an application publishes or uses as a client.
Internet & Web Reference 2009-04-08
NSNetServiceBrowser Class Reference (HTML) (PDF)
Describes a query for published network services.
Internet & Web Reference 2009-04-08
NSURL Additions Reference (HTML) (PDF)
Describes additions to support pasteboards.
Internet & Web Reference 2006-05-23
NSURL Class Reference (HTML) (PDF)
Describes a string that uniquely identifies a resource.
Internet & Web Reference 2009-02-04
NSURLAuthenticationChallenge Class Reference (HTML) (PDF)
Describes a challenge from a server requiring authentication from the client.
Internet & Web Reference 2006-05-23
NSURLAuthenticationChallengeSender Protocol Reference (HTML) (PDF)
Describes the interface for receiving authentication challenges.
Internet & Web Reference 2006-05-23
NSURLCache Class Reference (HTML) (PDF)
Describes a collection of cached responses and data.
Internet & Web Reference 2008-03-11
NSURLClient Protocol Reference (HTML) (PDF)
Deprecated - Describes the deprecated class replaced by the classes NSURLConnection and NSURLDownload.
Internet & Web Reference 2006-08-01
NSURLConnection Class Reference (HTML) (PDF)
Describes the class that provides support for retrieving data from a server in response to a URL load request.
Internet & Web Reference 2007-04-01
NSURLCredential Class Reference (HTML) (PDF)
Describes a credential used to authenticate a URL load request.
Internet & Web Reference 2006-06-28
NSURLCredentialStorage Class Reference (HTML) (PDF)
Describes a mapping of credentials to their corresponding protection spaces.
Internet & Web Reference 2006-05-23
NSURLDownload Class Reference (HTML) (PDF)
Describes a connection used to download data to a file.
Internet & Web Reference 2006-05-23
NSURLHandle Class Reference (HTML) (PDF)
Describes a deprecated technology replaced by the NSURLDownload class.
Internet & Web Reference 2009-02-04
NSURLHandleClient Protocol Reference (HTML) (PDF)
Describes a deprecated technology replaced by the NSURLDownload class.
Internet & Web Reference 2006-05-23
NSURLProtectionSpace Class Reference (HTML) (PDF)
Describes an area on a server that requires authentication of URL load requests.
Internet & Web Reference 2006-05-23
NSURLProtocol Class Reference (HTML) (PDF)
Describes the interface for protocol-specific loading of URL data.
Internet & Web Reference 2007-04-01
NSURLProtocolClient Protocol Reference (HTML) (PDF)
Describes the interface used by protocol objects to communicate with the URL loading system.
Internet & Web Reference 2006-05-23
NSURLRequest Class Reference (HTML) (PDF)
Describes a request for a resource identified by a URL.
Internet & Web Reference 2007-04-01
NSURLResponse Class Reference (HTML) (PDF)
Describes the metadata returned by a server for a load request.
Internet & Web Reference 2007-12-11
Publication Subscription Framework Reference (HTML)
Describes the Cocoa framework for publishing and subscribing to RSS and Atom feeds.
Internet & Web Reference 2008-04-08
SayIt (HTML) (DMG) (ZIP)
Web Kit plug-in which speaks text passed via JavaScript
Internet & Web Sample Code 2006-08-04
SBSendEmail (HTML) (DMG) (ZIP)
Using the Scripting Bridge to tell Mail.app to send an email message with an optional attachment.
Internet & Web Sample Code 2008-02-28
Sending an Email (HTML)
QA1084: Shows how to create an email in the user's prefered email application.
Internet & Web Technical Q&As 2004-11-05
SpecialPictureProtocol (HTML) (DMG) (ZIP)
Use a custom NSURLProtocol to create jpeg images in memory for display in a webView.
Internet & Web Sample Code 2006-03-13
Sync Services Release Notes (10.4) (HTML)
Internet & Web Release Notes 2005-04-29
Sync Services Framework Reference (HTML) (PDF)
Describes the Objective-C API for the Sync Services framework used to sync applications and devices.
Internet & Web Reference 2007-10-31
Sync Services Programming Guide (HTML) (PDF)
Explains how to add syncing to your applications.
Internet & Web Guides 2007-10-31
Sync Services Tutorial (HTML) (PDF)
Explains how to debug multiple syncing applications using the Syncrospector development tool.
Internet & Web Guides 2007-07-11
Tree-Based XML Programming Guide for Cocoa (HTML) (PDF)
Explains how to use the NSXML classes of Cocoa to process, modify, and query XML data.
Internet & Web Guides 2009-02-04
URL Loading System (HTML) (PDF)
Explains how to manipulate URLs and transfer URL contents.
Internet & Web Guides 2008-05-06
Using the .Mac SDK (HTML)
Learn how the .Mac SDK can enhance your application with powerful web-integration features.
Internet & Web Articles 2005-01-25
Using the Web Services Core Framework and CFNetwork to Access Remote SOAP Services (HTML)
Learn how to access remote SOAP-based web services that require HTTP Basic or Digest authentication.
Internet & Web Articles 2007-03-07
Web Services Core Framework Reference (HTML)
Describes the client-side APIs for accessing web services.
Internet & Web Reference 2009-01-06
Web Services Core Programming Guide (HTML) (PDF)
Explains how to use the new Web Services client-side frameworks available in Mac OS X.
Internet & Web Guides 2009-01-06
WebKit DOM Programming Topics (HTML) (PDF)
Describes how to use JavaScript in web content and WebKit-based applications.
Internet & Web Guides 2008-10-15
WebKit Objective-C Programming Guide (HTML) (PDF)
Explains how to use the WebKit to embed web content in both Cocoa and Carbon applications.
Internet & Web Guides 2008-10-15
WebKit Plug-In Programming Topics (HTML) (PDF)
Explains how to develop and deploy browser plug-ins based on the WebKit architecture.
Internet & Web Guides 2008-10-15
WebKit Reference Update (HTML) (PDF)
Summarizes the symbols added to the WebKit framework.
Internet & Web Release Notes 2008-11-19
WebKitDOMElementPlugIn (HTML) (DMG) (ZIP)
A Web Kit plug-in that modifies its own DOM element style
Internet & Web Sample Code 2006-08-04
WebKitPluginStarter (HTML) (DMG) (ZIP)
Shows how to make a minimal WebKit plug-in.
Internet & Web Sample Code 2007-06-06
WebKitPluginWithJavaScript (HTML) (DMG) (ZIP)
Shows how to call JavaScript from a WebKit plug-in and vice versa.
Internet & Web Sample Code 2007-06-06
WebKitPluginWithSimpleGUI (HTML) (DMG) (ZIP)
A WebKit plug-in with an Interface Builder GUI
Internet & Web Sample Code 2007-06-04
XML-RPC and SOAP Programming Guide (HTML) (PDF)
Explains how to make remote procedure calls from applications or from AppleScript scripts.
Internet & Web Guides 2005-03-03
Comparing selectors in Cocoa-Java code (HTML)
Deprecated - QA1069: Explains why Objective-C and Java selectors appear to be the same name but equality tests fail.
Java Technical Q&As 2001-08-31
JavaFrameEmbedding example (HTML) (DMG) (ZIP)
Small Cocoa application that demonstrates how to use JavaFrameEmbedding.framework
Java Sample Code 2007-06-12
JDragNDrop (HTML) (DMG) (ZIP)
Deprecated - Demonstrates building a simple view to implement Drag-and-Drop functionality in Cocoa-Java.
Java Sample Code 2003-01-14
JNI Development on Mac OS X (HTML)
TN2147: Discusses use of native APIs and UI elements from Java applications
Java Technical Notes 2006-04-17
SimpleCocoaJavaMovie (HTML) (DMG) (ZIP)
Deprecated - A simple movie player showing how to use the NSMovieView and NSMovie Cocoa Java classes.
Java Sample Code 2003-01-14
Allocate and Disk Full Error (HTML) (日本語 HTML)
FL12: Discusses a problem with AFP volumes displaying incorrect free space, and returning disk full errors.
Networking Technical Q&As 1999-07-21
AutoUpdater (HTML) (DMG) (ZIP)
This sample demonstrates Cocoa networking using the NSURL loading classes, NSURLConnection and NSURLDownload.
Networking Sample Code 2005-06-01
Bonjour and wake from sleep (HTML)
QA1290: Explains why applications that use Bonjour should stay registered and continue browsing on sleep.
Networking Technical Q&As 2003-09-18
Bonjour enforces the service type format in Panther (HTML)
QA1198: Explains why registering a Bonjour service might fail on Panther.
Networking Technical Q&As 2004-03-23
Bonjour enforces the TXT record format in Panther (HTML)
QA1306: Explains how mDNSResponder enforces the proper TXT record format in Panther.
Networking Technical Q&As 2004-07-14
Bonjour Printer Subtype for HTTP (HTML)
QA1555: Describes how printer vendors can register their bonjour service such that Safari can see them.
Networking Technical Q&As 2008-03-25
Bonjour TXT record rate limiting in Panther (HTML)
QA1293: Explains how mDNSResponder implements TXT record rate limiting in Panther.
Networking Technical Q&As 2003-10-23
CBGroupIdentity Class Reference (HTML) (PDF)
Describes the class for operating on user identities.
Networking Reference 2007-05-14
CBIdentity Class Reference (HTML) (PDF)
Describes the class used to create and operate on identities.
Networking Reference 2007-05-14
CBIdentityAuthority Class Reference (HTML) (PDF)
Describes the class used to manipulate identity authority databases.
Networking Reference 2007-05-14
CBIdentityPicker Class Reference (HTML) (PDF)
Describes the class that manages the identity picker.
Networking Reference 2007-05-14
CBUserIdentity Class Reference (HTML) (PDF)
Describes the class for operating on user identities.
Networking Reference 2007-05-14
CFNetwork Programming Guide (HTML) (PDF)
Explains how to use Core Foundation networking functions to work with low-level BSD sockets.
Networking Guides 2009-05-06
Changing the TCP Window Size (HTML)
NW47: Describes how to change the TCP window size in Open Transport.
Networking Technical Q&As 1997-03-14
CocoaEcho (HTML) (DMG) (ZIP)
Cocoa example code showing how to write a simple client and server using NSStream.
Networking Sample Code 2005-06-01
CocoaHTTPServer (HTML) (DMG) (ZIP)
A Cocoa example showing how to write a very basic HTTP service.
Networking Sample Code 2005-06-01
CocoaSOAP (HTML) (DMG) (ZIP)
Demonstrates implementing a SOAP client and server in Cocoa.
Networking Sample Code 2005-06-06
Collaboration Framework Reference (HTML) (PDF)
Describes the Objective-C API for monitoring and editing identities.
Networking Reference 2007-05-14
Discovering all advertised Bonjour service types (HTML)
QA1337: Explains how to discover all Bonjour service types being advertised on the local network.
Networking Technical Q&As 2004-06-01
Distributed Objects Programming Topics (HTML) (PDF)
Explains how Objective-C objects in different threads or different processes communicate.
Networking Guides 2007-06-06
Don't forget to cancel your Bonjour resolve (HTML)
QA1297: Explains why it's important to cancel a Bonjour resolve operation.
Networking Technical Q&As 2007-08-30
Downloading through a proxy server in Mac OS X (HTML)
QA1296: Explains when downloading through a proxy server will work, and when it will fail.
Networking Technical Q&As 2003-10-29
GetMACAddressSample (HTML) (DMG) (ZIP)
Demonstrates how to retrieve the MAC address for each Ethernet interface from the Mac OS X I/O Registry.
Networking Sample Code 2003-01-14
GetPrimaryMACAddress (HTML) (DMG) (ZIP)
Demonstrates retrieving the MAC address of the built-in Ethernet controller. Useful for uniquely identifying a Macintosh system.
Networking Sample Code 2005-10-27
Getting a Packet Trace (HTML) (日本語 HTML)
QA1176: Lists tools available for looking at the network packets on the wire.
Networking Technical Q&As 2008-06-03
GridCalendar (HTML) (DMG) (ZIP)
Demonstrates how to add a custom job submission UI to the GridSample project.
Networking Sample Code 2005-06-01
Identity Services Reference Collection (HTML) (PDF)
Describes the APIs for using identities and the Identity Picker.
Networking Reference 2007-05-14
ImageClient (HTML) (DMG) (ZIP)
Demonstrates how to use CFNetwork for synchronous and asynchronous operations, network diagnostics, proxy navigation, and authentication.
Networking Sample Code 2005-06-01