SimpleCocoaBrowser

Last Revision:
Version 1.1, 2011-05-02
Updated for Mac OS X 10.6 and Xcode 4.
(Full Revision History)
Build Requirements:
Xcode 3.2 or later, Mac OS X v10.6 or later
Runtime Requirements:
Mac OS X v10.6 or later

SimpleBrowser is a very simple example of how to create a basic NSBrowser delegate implementation. See the ComplexBrowser example for a more interesting example, and to see the use of a custom cell.

Two delegate implementation styles are shown and can be turned on and off via a #define in AppController.m. The first style utilizes a new "item-based" API introduced in Mac OS X v10.6. Applications targeting Mac OS X v10.6 and higher should use this new API. For applications that must run on prior releases, an older implementation is shown.