Version: 1.0

Posted: 2009-06-01

Build Requirements: Xcode 3.2 or later, Mac OS X v10.6 or later

Runtime Requirements: Mac OS X v10.6 or later

View Source Code:

Download Sample Code (“SimpleCocoaBrowser.zip”, 90.4K)



Description

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.

Document Revision History

Date Notes
2009-06-01SimpleBrowser is a very simple example of how to create a basic NSBrowser delegate implementation.