Retired Document
Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
Introduction to Data Browser Programming Guide
A data browser provides a user interface for displaying and selecting items from a list of data or from hierarchically organized lists of data such as directory paths. The list and column views in the Finder are representative of the kind of behavior your application can provide using the data browser API.
The data browser API supports the following:
The ability to display an unlimited number of cells
Built-in drag-and-drop handling
Display of a variety of data—text, icons, checkboxes, pop-up menus, progress bars, relevance indicators, and sliders
Contextual menus and help tags
Built-in support for editing text displayed in the data browser
Display of hierarchically organized data in a list
Keyboard navigation and accessibility
Who Should Read This Document?
This document is targeted at Mac OS X Carbon developers who want to display data that can be browsed in a way similar to data browsing in the Mac OS X Finder. The document assumes you are familiar with Mac OS X programming and with Carbon in particular.
Some of the features available in a data browser assume you are familiar with the technologies underlying the features. For example, if you want to provide help tags for data browser items, knowledge of the Carbon Help Manager is useful. Cross-references are provided for situations in which information from another technology is helpful.
Organization of This Document
This document contains the following chapters:
Data Browser Concepts shows typical data browser user interfaces, introduces data browser terminology, describes how the data browser works, provides in-depth information on what can be displayed, and defines the terms needed to refer to the displayed data.
Data Browser Tasks describes how to use the data browser API to display data in list view and column view, to switch between views, to support text editing in a cell. It also provides information on the callbacks you need to supply to support drag and drop, provide help tags and contextual menus, and to customize drawing, tracking, and dragging behavior.
See Also
Data Browser Reference. This document is a complete reference for the functions, callbacks, data types, and constants provided by the data browser API.
Copyright © 2004, 2007 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2007-08-07