Jump To:
Leopard Reference Library: Cocoa
User experience encompasses the visual appearance, interactive behavior, and assistive capabilities of software. From an application's graphical user interface to its use of additional technologies such as speech recognition and speech synthesis, a cohesive and professional user experience is what Mac users have come to expect. Cocoa provides a complete suite of Interface Builder palettes and programmatic interfaces that developers can use to deliver this experience in their applications.

View all User Experience Reference Library.
Document Descriptions
On Off
Display

Sort by
Title
Sort by
Resource Type
Sorted by
Date
Using AppleScript Scripts in Cocoa Applications (HTML)
TN2084: Explains how to work with AppleScript scripts in your Cocoa application.
Technical Notes 2006-09-19
Disabling and Enabling an NSTextView (HTML)
QA1461: Shows how a Cocoa application can disable and enable an NSTextView.
Technical Q&As 2006-09-11
Sheet Programming Topics for Cocoa (HTML) (PDF)
Explains how to use Cocoa sheets.
Guides 2006-09-05
Speech Synthesis Programming Guide (HTML) (PDF)
Describes speech synthesis in Mac OS X and explains how your application can produce customized spoken output.
Guides 2006-09-05
StickiesExample (HTML) (DMG) (ZIP)
Contains sample code and tools used by Sync Services Tutorial to demonstrate debugging syncing applications.
Sample Code 2006-08-08
How to create a Cocoa Disclosure Button Control (HTML)
QA1485: Explains how to create a disclosure button control in Cocoa, not immediately available in Interface Builder.
Technical Q&As 2006-08-01
Software Delivery Guide (HTML) (PDF)
Explains how to distribute and install Mac OS X software using PackageMaker and Installer.
Guides 2006-07-24
Find By Content Reference (HTML) (PDF)
Deprecated - Describes the legacy C API for performing relevance-ranked searches. Replaced by Search Kit.
Reference 2006-07-13
Drag and Drop Programming Topics for Cocoa (HTML) (PDF)
Explains how to implement drag and drop in Cocoa.
Guides 2006-06-28
NSToolbarItem Class Reference (HTML) (PDF)
Describes a single item in a window's toolbar.
Reference 2006-06-28
Online Help (HTML) (PDF)
Explains how to add help to a Cocoa application.
Guides 2006-06-28
Outline View Programming Topics for Cocoa (HTML) (PDF)
Explains how to use Cocoa outline views.
Guides 2006-06-28
Scroll View Programming Guide for Cocoa (HTML) (PDF)
Describes how to use scroll views in Cocoa applications.
Guides 2006-06-28
Text System User Interface Layer Programming Guide for Cocoa (HTML) (PDF)
Explains how to implement the main, high-level interface to the Cocoa text system.
Guides 2006-06-28
DOMHTMLFrameElement Additions Reference (HTML) (PDF)
Describes the API added to the DOMHTMLFrameElement class to facilitate communication between WebKit and the DOM API.
Reference 2006-05-23
DOMHTMLIFrameElement Additions Reference (HTML) (PDF)
Describes the API added to the DOMHTMLIFrameElement class to facilitate communication between WebKit and the DOM API.
Reference 2006-05-23
DOMHTMLObjectElement Additions Reference (HTML) (PDF)
Describes the API added to the DOMHTMLObjectElement class to facilitate communication between WebKit and the DOM API.
Reference 2006-05-23
NSComboBox Class Reference (HTML) (PDF)
Describes a control for entering text or selecting from a pop-up list of items.
Reference 2006-05-23
NSComboBoxCell Class Reference (HTML) (PDF)
Describes the text field that provides the user interface for NSComboBox objects.
Reference 2006-05-23
NSComboBoxCellDataSource Protocol Reference (HTML) (PDF)
Describes the interface for receiving data requests from an NSComboBoxCell object.
Reference 2006-05-23
NSComboBoxDataSource Protocol Reference (HTML) (PDF)
Describes the interface for receiving data requests from an NSComboBox object.
Reference 2006-05-23
NSDrawer Class Reference (HTML) (PDF)
Describes a retractable user interface element that displays view objects.
Reference 2006-05-23
NSForm Class Reference (HTML) (PDF)
Describes a vertical matrix of NSFormCell objects.
Reference 2006-05-23
NSFormCell Class Reference (HTML) (PDF)
Describes a title and text entry field in an NSForm object.
Reference 2006-05-23
NSPreferencePane Class Reference (HTML) (PDF)
Defines the interface for subclasses to provide preference panes to System Preferences or other applications.
Reference 2006-05-23
NSScrollView Class Reference (HTML) (PDF)
Describes a view for displaying content larger than its bounds.
Reference 2006-05-23
NSSearchField Class Reference (HTML) (PDF)
Describes a text field optimized for entering a search query.
Reference 2006-05-23
NSSecureTextField Class Reference (HTML) (PDF)
Describes a text field that hides its text.
Reference 2006-05-23
NSSlider Class Reference (HTML) (PDF)
Describes a control for selecting a value from a continuous range of values.
Reference 2006-05-23
NSSliderCell Class Reference (HTML) (PDF)
Describes an action cell that provides appearance and behavior for an NSSlider object.
Reference 2006-05-23
NSStepper Class Reference (HTML) (PDF)
Describes a control that can increment and decrement a value.
Reference 2006-05-23
NSStepperCell Class Reference (HTML) (PDF)
Describes an action cell that provides appearance and behavior for an NSStepper object.
Reference 2006-05-23
NSTableHeaderCell Class Reference (HTML) (PDF)
Describes the user interface of a column header of a table view.
Reference 2006-05-23
NSTableHeaderView Class Reference (HTML) (PDF)
Describes a column header of a table view.
Reference 2006-05-23
NSTabView Class Reference (HTML) (PDF)
Describes a view that supports switching between subviews.
Reference 2006-05-23
NSTabViewItem Class Reference (HTML) (PDF)
Describes a single view in a tab view.
Reference 2006-05-23
NSToolbarItemValidation Protocol Reference (HTML) (PDF)
Describes the interface for providing customized enabling and disabling of a toolbar item.
Reference 2006-05-23
NSToolTipOwner Protocol Reference (HTML) (PDF)
Describes the interface for receiving requests for tooltip text.
Reference 2006-05-23
NSUserInterfaceValidations Protocol Reference (HTML) (PDF)
Describes the interface for participating in automatic enabling and disabling of controls.
Reference 2006-05-23
NSViewAnimation Class Reference (HTML) (PDF)
Describes an animation in a view or window.
Reference 2006-05-23
NSWindowScripting Protocol Reference (HTML) (PDF)
Describes the category on NSWindow for scripting basic properties and commands of windows in scriptable applications.
Reference 2006-05-23
Preference Panes Framework Reference (HTML) (PDF)
Describes the Objective-C API for supporting and working with preference panes.
Reference 2006-05-23
Screen Saver Framework Reference (HTML) (PDF)
Describes the Objective-C API for supporting and working with screen effects.
Reference 2006-05-23
Screen Saver Functions Reference (HTML) (PDF)
Describes functions and function-like macros available in the Screen Saver framework.
Reference 2006-05-23
ScreenSaverDefaults Class Reference (HTML) (PDF)
Describes the class that defines a set of methods for saving and restoring user defaults for screen savers.
Reference 2006-05-23
ScreenSaverView Class Reference (HTML) (PDF)
Describes the class that defines the interface for subclassers to interact with the screen saver infrastructure.
Reference 2006-05-23
WebDocumentRepresentation Protocol Reference (HTML) (PDF)
Describes the protocol adopted by document representation classes that handle specific MIME types.
Reference 2006-05-23
WebDocumentSearching Protocol Reference (HTML) (PDF)
Describes the protocol adopted by document view objects to support searching.
Reference 2006-05-23
WebUndefined Class Reference (HTML) (PDF)
Describes the class used to represent the JavaScript "undefined" value.
Reference 2006-05-23
Table View Programming Guide (HTML) (PDF)
Explains how to use Cocoa table views.
Guides 2006-04-04
Segmented Controls Programming Guide for Cocoa (HTML) (PDF)
Explains how to use Cocoa segmented controls.
Guides 2006-02-07
Search Kit Programming Guide (HTML) (PDF)
Describes Search Kit architecture and workflow, and how to add search capabilities to Carbon and Cocoa applications.
Guides 2005-12-06
Reducer (HTML) (DMG) (ZIP)
Simple utility for rescaling bitmapped images. Demonstrates use of Core Image, NSAnimation, view drawing redirection.
Sample Code 2005-06-06
iSpend (HTML) (DMG) (ZIP)
Demonstrates how to incorporate a number of Cocoa Tiger features into a simple application.
Sample Code 2005-06-01
SearchKit Release Notes (HTML)
Release Notes 2005-04-29
Finding an NSView's current magnification. (HTML)
QA1346: How to discover the current magnification (zoom level) of any NSView.
Technical Q&As 2005-03-08
Why aren't my tracking rects working? (HTML)
QA1355: Describes a common mistake in setting up cursor-tracking rectangles.
Technical Q&As 2004-12-02
Browsers (HTML) (PDF)
Explains how to use Cocoa browsers.
Guides 2004-08-31
Font Panel (HTML) (PDF)
Explains how to use the Cocoa Font panel.
Guides 2004-08-31
Binding your Preferences in Cocoa (HTML)
Learn to use bindings by creating a simple app.
Articles 2004-04-26
Using the Web Kit for Application Registration (HTML)
Learn how to use the Web Kit to handle your application's online registration.
Articles 2004-03-09
Spell Checking (HTML) (PDF)
Explains how to use the spell-checking facilities in the Cocoa text system.
Guides 2004-02-09
Text Fields (HTML) (PDF)
Explains how to use Cocoa text fields.
Guides 2004-02-09
Text Views (HTML) (PDF)
Explains how to use Cocoa text views.
Guides 2004-02-09
TipWrapper (HTML) (DMG) (ZIP)
Shows how to wrap long tool tips into multiple lines in Cocoa.
Sample Code 2003-12-18
OpenGL Screensaver (HTML) (DMG) (ZIP)
Demonstrates how to integrate OpenGL drawing into a standard Cocoa screen saver on Mac OS X.
Sample Code 2003-12-10
MungSaver (HTML) (DMG) (ZIP)
Demonstrates a simple Screen Saver module for Panther, using the Sequence Grabber DataProc mung technique.
Sample Code 2003-11-18
Tab Views (HTML) (PDF)
Explains how to use Cocoa tab views.
Guides 2003-11-06
FancyAbout (HTML) (DMG) (ZIP)
Demonstrates several visual effects for "About..." panels such as scrolling text, window without a title bar, and ways to dismiss the window.
Sample Code 2003-10-27
How to remove the "Open Recent" menu item in a Document-based Cocoa application (HTML)
QA1289: Explains how to remove the "Open Recent" menu item in a Document-based Cocoa application.
Technical Q&As 2003-09-15
How to set a custom drag image when doing an HFS Promise drag in Cocoa (HTML)
QA1200: Explains how to set a custom drag image when doing an HFS Promise drag in Cocoa.
Technical Q&As 2003-09-15
Speech (HTML) (PDF)
Explains Cocoa's interfaces to the speech synthesis and speech recognition technologies.
Guides 2003-08-08
Sproing (HTML) (DMG) (ZIP)
Shows how "springs" work to control view resizing behavior.
Sample Code 2003-05-20
FunkyOverlayWindow (HTML) (DMG) (ZIP)
Demonstrates several window layering, transparency and widget interaction techniques in Cocoa.
Sample Code 2003-05-08
CarbonInCocoa (HTML) (DMG) (ZIP)
How to use Carbon GUI code in a Cocoa application.
Sample Code 2003-03-26
Clock Control (HTML) (DMG) (ZIP)
Demonstrates creating a custom control by creating a clock control, implemented as a subclass of NSControl and NSCell.
Sample Code 2003-02-25
Guide to Creating Kiosks on Mac OS X (HTML) (日本語 HTML)
TN2062: Discusses techniques used in creating applications which require kiosk-like functionality on Mac OS X.
Technical Notes 2003-02-24
Boxes (HTML) (PDF)
Explains how to use Cocoa boxes.
Guides 2003-02-15
Drawers (HTML) (PDF)
Explains how to use Cocoa drawers.
Guides 2003-02-04
AnimatedSlider (HTML) (DMG) (ZIP)
Demonstrates the use of an NSTimer to animate a control in Cocoa.
Sample Code 2003-01-14
Color Sampler (HTML) (DMG) (ZIP)
Demonstrates one way to sample the color at a given point in an NSView.
Sample Code 2003-01-14
Cropped Image (HTML) (DMG) (ZIP)
Demonstrates how to extract a sub-image from another image, and some ways of indicating a selection.
Sample Code 2003-01-14
DeskPictAppDockMenu (HTML) (DMG) (ZIP)
How to add a dynamic Dock menu to your Cocoa application
Sample Code 2003-01-14
MP3 Player (HTML) (DMG) (ZIP)
How to wrap a command-line UNIX/Linux application in a Cocoa GUI, calling a the command-line app through NSTask.
Sample Code 2003-01-14
RGB Image (HTML) (DMG) (ZIP)
Demonstrates compositing to separate an NSimage into its RGB components, and how to recombine those components.
Sample Code 2003-01-14
RoundTransparentWindow (HTML) (DMG) (ZIP)
Creating (in Cocoa) custom-shaped windows and transparent window content; plus changing the shape of windows dynamically.
Sample Code 2003-01-14
SonOfSillyBalls (HTML) (DMG) (ZIP)
Draws a bunch of randomly colored, randomly placed, silly balls in a window on the screen.
Sample Code 2003-01-14
Tinted Image (HTML) (DMG) (ZIP)
Demonstrates the use of an NSImage as an off-screen drawing destination.
Sample Code 2003-01-14
ToolbarSample (HTML) (DMG) (ZIP)
Demonstrates using the Cocoa NSToolbar/NSToolbarItem API to add customizable toolbars to windows. Includes advanced custom views.
Sample Code 2003-01-14
Combo Box Programming Topics (HTML) (PDF)
Explains how to use Cocoa combo boxes.
Guides 2002-11-12
Forms (HTML) (PDF)
Explains how to use Cocoa forms.
Guides 2002-11-12
Image Views (HTML) (PDF)
Explains how to use Cocoa image views.
Guides 2002-11-12
Progress Indicators (HTML) (PDF)
Explains how to use Cocoa progress indicators.
Guides 2002-11-12
Status Bars (HTML) (PDF)
Explains how to use Cocoa status bars.
Guides 2002-11-12
Steppers (HTML) (PDF)
Explains how to use Cocoa steppers.
Guides 2002-11-12
System Services (HTML) (PDF)
Explains how Cocoa applications can extend their capabilities seamlessly to other applications.
Guides 2002-11-12
Undo Architecture (HTML) (PDF)
Explains how to record information in Cocoa so a user can reverse an operation's effect.
Guides 2002-11-12
Preventing crashes when using multiple disabled but editable NSComboBoxes (HTML) (日本語 HTML)
QA1142: How to prevent a crash when using multiple disabled -- but editable --NSComboBoxes in a view.
Technical Q&As 2002-06-03
Solving NSTabView drawing problems in Mac OS X 10.1.x (HTML) (日本語 HTML)
QA1117: Explains how to work around NSTabView draw problems in Mac OS X 10.1.x
Technical Q&As 2002-02-14
Background-only apps with NSStatusItems become active in 10.1 on NSStatusItem clicks (HTML)
QA1081: Preventing background-only apps from activating when their NSStatusItem(s) are clicked in Mac OS X 10.1.
Technical Q&As 2001-10-30
Getting NSWindow's toolbar actions to show up in Interface Builder (HTML)
QA1030: How to add the missing -toggleToolbarShown: and -runToolbarCustomizationPalette actions to Interface Builder.
Technical Q&As 2001-05-03
How to get custom views to show up in NSToolbarItems (HTML)
QA1029: Why custom views may not show up in an NSToolBarItem and how to make it visible.
Technical Q&As 2001-05-03
NSTableView Class Reference (HTML) (PDF)
Describes a view that displays and manages tabular data.
Reference