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
IconCollection (HTML) (DMG) (ZIP)
Demonstrates how to use NSCollectionView along with NSWorkspace and named images to determine its content.
Sample Code 2008-01-18
DictionaryController (HTML) (DMG) (ZIP)
"DictionaryController" is a Cocoa application that demonstrates various ways in how to use the NSDictionaryController class.
Sample Code 2007-12-20
NSCollectionView Class Reference (HTML) (PDF)
Describes a collection of views that displays content in a grid.
Reference 2007-12-11
Token Field Programming Guide for Cocoa (HTML) (PDF)
Describes how to set up and programatically manage a token field.
Guides 2007-12-11
SourceView (HTML) (DMG) (ZIP)
Demonstrates how to use NSOutlineView driven by NSTreeController.
Sample Code 2007-11-15
CocoaSlides (HTML) (DMG) (ZIP)
An image browser written using AppKit's Core Animation-based compositing and animation functionality
Sample Code 2007-11-02
Apple Help Programming Guide (HTML) (PDF)
Explains how to author, package, and display user help content in Mac OS X.
Guides 2007-10-31
Cocoa Bindings Reference (HTML) (PDF)
Describes the exposed bindings of Cocoa classes.
Reference 2007-10-31
DiscRecording Release Notes (HTML)
Updated for Mac OS X v10.5
Release Notes 2007-10-31
NSAnimation Class Reference (HTML) (PDF)
Describes the behavior of an animation.
Reference 2007-10-31
NSSecureTextFieldCell Class Reference (HTML) (PDF)
Describes the user interface of a secure text field.
Reference 2007-10-31
NSTableColumn Class Reference (HTML) (PDF)
Describes the display characteristics and attribute identifiers for a column in a table view.
Reference 2007-10-31
QLThumbnailRequest Reference (HTML) (PDF)
Describes an opaque type for handling requests for Quick Look thumbnail images.
Reference 2007-10-31
User Defaults Programming Topics for Cocoa (HTML) (PDF)
Explains how to use the Cocoa defaults system to create and save user preferences.
Guides 2007-10-31
ButtonMadness (HTML) (DMG) (ZIP)
Demonstrates how to use the various types of buttons using a nib file or programatically.
Sample Code 2007-10-30
BundleLoader (HTML) (DMG) (ZIP)
Demonstrates how to load multiple Cocoa bundles or NSBundles (also known as plug-ins) into the main NSApplication.
Sample Code 2007-09-21
DockTile (HTML) (DMG) (ZIP)
Demonstrates how to customize your application's icon in the Dock by using the NSDockTile class.
Sample Code 2007-09-11
Adding and removing a submenu from a menu in Cocoa (HTML)
QA1420: Explains how to dynamically add and remove menus in a Cocoa application.
Technical Q&As 2007-09-10
SimpleCocoaApp (HTML) (DMG) (ZIP)
A basic Cocoa application for beginners to Cocoa and Objective-C.
Sample Code 2007-08-07
Preference Panes Reference Update (HTML) (PDF)
Summarizes the symbols added to the Preference Panes framework.
Release Notes 2007-07-18
Pasteboard Programming Topics for Cocoa (HTML) (PDF)
Explains how to transfer data using pasteboard operations in Cocoa.
Guides 2007-07-13
User Interface Validation (HTML) (PDF)
Explains how to use the standard mechanism to validate user interface items in Cocoa.
Guides 2007-07-10
NSFormatter Class Reference (HTML) (PDF)
Describes the interface for formatter objects.
Reference 2007-07-09
Application Menu and Pop-up List Programming Topics for Cocoa (HTML) (PDF)
Explains how Cocoa menus and lists work and how to manipulate items within them.
Guides 2007-06-26
JavaFrameEmbedding example (HTML) (DMG) (ZIP)
Small Cocoa application that demonstrates how to use JavaFrameEmbedding.framework
Sample Code 2007-06-12
LayerBackedOpenGLView (HTML) (DMG) (ZIP)
"LayerBackedOpenGLView" provides a simple example of hosting Cocoa controls as subviews of an NSOpenGLView.
Sample Code 2007-06-12
BasicCocoaAnimations (HTML) (DMG) (ZIP)
"BasicCocoaAnimations" demonstrates the use of the animator proxy to easily animate Cocoa views and windows.
Sample Code 2007-06-11
CustomSave (HTML) (DMG) (ZIP)
Demonstrates how to customize the NSSavePanel.
Sample Code 2007-06-11
MenuItemView (HTML) (DMG) (ZIP)
Demonstrates embedding an NSView inside a menu item or NSMenuItem.
Sample Code 2007-06-11
ViewController (HTML) (DMG) (ZIP)
Demonstrates how to use "NSViewController".
Sample Code 2007-06-11
TrackBall (HTML) (DMG) (ZIP)
Demonstrates how to build a custom control based on the NSControl class.
Sample Code 2007-06-07
PredicateEditorSample (HTML) (DMG) (ZIP)
Demonstrates how to use the NSPredicateEditor class.
Sample Code 2007-06-06
PrefsPane (HTML) (DMG) (ZIP)
A Cocoa sample System Preferences bundle that demonstrates how to use the NSPreferencePane class.
Sample Code 2007-06-06
SpeedometerView (HTML) (DMG) (ZIP)
Shows how to make a custom NSView.
Sample Code 2007-06-06
Querying Metadata With Spotlight (HTML)
TN2192: Describes how a Cocoa application can search Spotlight metadata.
Technical Notes 2007-06-04
TextLayoutDemo (HTML) (DMG) (ZIP)
Customizing NSTextView with NSLayoutManager and a custom NSTextContainer.
Sample Code 2007-06-01
ObjectPath (HTML) (DMG) (ZIP)
Demonstrates how to use the NSPathControl class.
Sample Code 2007-05-22
Resolution Independence Guidelines (HTML) (PDF)
Describes resolution independence and how to start updating applications to support high-resolution monitors.
Guides 2007-05-04
NSViewController Class Reference (HTML) (PDF)
Describes the manager of a view, usually a view stored in a nib file.
Reference 2007-05-02
NSColorPickingDefault Protocol Reference (HTML) (PDF)
Describes the interface for receiving basic color-picker user-interface requests.
Reference 2007-04-27
DatePicker (HTML) (DMG) (ZIP)
Demonstrates how to use the NSDatePicker control.
Sample Code 2007-04-25
NSAlert Class Reference (HTML) (PDF)
Describes a window that displays a message and obtains the user's response to it.
Reference 2007-04-25
SearchField (HTML) (DMG) (ZIP)
Demonstrates how to use and customize the features of the "NSSearchField" control.
Sample Code 2007-04-25
QLPreviewRequest Reference (HTML) (PDF)
Describes an opaque type for handling requests for Quick Look document previews.
Reference 2007-04-20
Quick Look Framework Reference (HTML) (PDF)
Describes the interface for creating plug-ins that generate Quick Look previews and thumbnails.
Reference 2007-04-13
NSPathCell Class Reference (HTML) (PDF)
Describes the user interface of a path control object.
Reference 2007-04-11
NSPathCellDelegate Protocol Reference (HTML) (PDF)
Describes the interface used to customize a pop-up-style control that represents a path.
Reference 2007-04-11
NSPathComponentCell Class Reference (HTML) (PDF)
Describes a component of a path control.
Reference 2007-04-11
NSPathControl Class Reference (HTML) (PDF)
Describes a control representing a file path or virtual path.
Reference 2007-04-11
NSPathControlDelegate Protocol Reference (HTML) (PDF)
Describes the interface used to support dragging and pop-up menu customization in path controls.
Reference 2007-04-11
NSToolbarItemGroup Class Reference (HTML) (PDF)
Describes a group of items in a window's toolbar.
Reference 2007-04-11
NSTableDataSource Protocol Reference (HTML) (PDF)
Describes the interface for receiving table view data requests.
Reference 2007-04-10
NSFontPanel Class Reference (HTML) (PDF)
Describes the panel for font selection.
Reference 2007-04-06
NSFontPanelValidation Protocol Reference (HTML) (PDF)
Describes the interface for validating fonts.
Reference 2007-04-06
NSBrowser Class Reference (HTML) (PDF)
Describes a control for manipulating one- or two-dimensional data sets.
Reference 2007-04-05
NSSpeechRecognizer Class Reference (HTML) (PDF)
Describes the Cocoa command-and-control voice recognition system.
Reference 2007-04-03
NSInputServerMouseTracker Protocol Reference (HTML) (PDF)
Describes the protocol implemented by text input servers to handle mouse events.
Reference 2007-04-02
NSInputServiceProvider Protocol Reference (HTML) (PDF)
Describes the protocol implemented by text input servers to handle application and text field events.
Reference 2007-04-02
NSBrowserCell Class Reference (HTML) (PDF)
Describes a cell that displays data in a browser.
Reference 2007-04-01
NSButton Class Reference (HTML) (PDF)
Describes a control that responds to clicks.
Reference 2007-04-01
NSColorPickingCustom Protocol Reference (HTML) (PDF)
Describes the interface for receiving custom color-picker user-interface requests.
Reference 2007-04-01
NSInputManager Class Reference (HTML) (PDF)
Describes the class used by text views to communicate with the text input management system.
Reference 2007-04-01
NSInputServer Class Reference (HTML) (PDF)
Describes the class that interprets text view events and communicates them to the text input management system.
Reference 2007-04-01
NSPrintPanelAccessorizing Protocol Reference (HTML) (PDF)
Describes the interface for configuring accessory panes for the print panel.
Reference 2007-03-09
NSMenuItemCell Class Reference (HTML) (PDF)
Describes a deprecated class replaced by the NSMenuItem class.
Reference 2007-03-07
NSStatusBar Class Reference (HTML) (PDF)
Describes the collection of status items in the menu bar.
Reference 2007-03-05
NSStatusItem Class Reference (HTML) (PDF)
Describes a status item in the menu bar.
Reference 2007-03-05
NSTokenFieldCell Class Reference (HTML) (PDF)
Describes a cell used in the conversion of entered text into tokens representing objects.
Reference 2007-03-05
TrackIt (HTML) (DMG) (ZIP)
Demonstrates how to use the NSTrackingArea class.
Sample Code 2007-03-05
NSMenuValidation Protocol Reference (HTML) (PDF)
Describes the interface for enabling and disabling menu items.
Reference 2007-03-02
NSLevelIndicator Class Reference (HTML) (PDF)
Describes a control for displaying a rank or amount along a linear scale.
Reference 2007-03-01
NSLevelIndicatorCell Class Reference (HTML) (PDF)
Describes a cell used for displaying a rank or amount along a linear scale.
Reference 2007-03-01
Grady (HTML) (DMG) (ZIP)
Demonstrates how to use the NSGradient class.
Sample Code 2007-02-28
NSActionCell Class Reference (HTML) (PDF)
Describes the interface for the active area in a control.
Reference 2007-02-28
NSColorPicker Class Reference (HTML) (PDF)
Describes the interface for custom views in a color panel used for color selection.
Reference 2007-02-28
NSColorWell Class Reference (HTML) (PDF)
Describes a control for displaying and selecting colors.
Reference 2007-02-28
NSErrorRecoveryAttempting Protocol Reference (HTML) (PDF)
Describes the interface for attempting recovery from runtime errors.
Reference 2007-02-23
TwoManyControllers (HTML) (DMG) (ZIP)
How to use an intermediate NSArrayController to populate an NSTableView across two to-many relationships.
Sample Code 2007-02-23
NSOutlineViewDataSource Protocol Reference (HTML) (PDF)
Describes the interface used by an outline view to retrieve data and, optionally, to update data values.
Reference 2007-02-19
Accessibility Programming Guidelines for Cocoa (HTML) (PDF)
Explains how Cocoa applications make their user interface available to external assistive applications.
Guides 2007-02-08
NSMenuItem Protocol Reference (HTML) (PDF)
Deprecated - Describes a deprecated protocol replaced by the NSMenuItem class.
Reference 2007-02-08
Cocoa_With_Carbon_or_CPP (HTML) (DMG) (ZIP)
Shows how to call Carbon routines and C++ code from within an Objective-C Cocoa program.
Sample Code 2007-02-05
NSOpenGLView Class Reference (HTML) (PDF)
Describes a view for OpenGL drawing.
Reference 2007-01-26
NSOpenPanel - Choosing any file and ignoring packages (HTML)
QA1468: Explains how to configure NSOpenPanel to filter only files and ignoring packages.
Technical Q&As 2007-01-25
Preventing column reordering in NSTableView (HTML)
QA1503: Demonstrates how to prevent column reordering of certain columns in NSTableView.
Technical Q&As 2007-01-24
Creating an About Panel in Your Cocoa Application (HTML)
TN2179: Describes different ways in implementing your Cocoa application's "About" panel.
Technical Notes 2007-01-22
NSImageView Class Reference (HTML) (PDF)
Describes a view that displays an image.
Reference 2007-01-22
CarbonCocoa_PictureCursor (HTML) (DMG) (ZIP)
Demonstrates how to use NSCursor from a Carbon based application.
Sample Code 2007-01-12
NSPredicateEditorRowTemplate Class Reference (HTML) (PDF)
Describes a row in a graphical predicate editor.
Reference 2007-01-12
NSCollectionViewItem Class Reference (HTML) (PDF)
Describes a controller that mediates between a prototype view and a model object.
Reference 2006-12-28
Configuring the Recent Searches menu for NSSearchField (HTML)
QA1496: Discusses the common problem when adding menu items to the Recent Searches menu.
Technical Q&As 2006-11-27
NSProgressIndicator animation and redraw (HTML)
QA1473: Discusses why NSProgressIndicator does not redraw during progress loops.
Technical Q&As 2006-11-15
Debugging NSTableView's "Action Invocation" binding (HTML)
QA1472: Discusses the issues and factors that affect NSTableView's "Action Invocation" binding.
Technical Q&As 2006-11-13
Matrix Programming Guide for Cocoa (HTML) (PDF)
Explains how to use Cocoa matrices.
Guides 2006-11-07
How to make NSTextField accept tab, return and enter keys. (HTML)
QA1454: Describes how to make the NSTextField control accept tab, return and enter keys by using the control's dispatch delegate method.
Technical Q&As 2006-10-09
MyCustomColorPicker (HTML) (DMG) (ZIP)
Shows how to write a custom color picker using Cocoa.
Sample Code 2006-10-09
Preference Panes (HTML) (PDF)
Explains how to create dynamically loaded plug-ins that provide a graphical interface to user preferences.
Guides 2006-10-03
Slider Programming Topics for Cocoa (HTML) (PDF)
Explains how to use Cocoa sliders.
Guides 2006-10-03
Embedding Hyperlinks in NSTextField and NSTextView (HTML)
QA1487: Shows how a Cocoa app can embed a hyperlink inside both NSTextField and NSTextView using NSAttributedString.
Technical Q&As 2006-10-02
ImageBackground (HTML) (DMG) (ZIP)
Shows how to draw an image in the background of an NSOutlineView and NSTableView.
Sample Code 2006-10-02