List Manager


Introduction

You can use the List Manager to store and update elements of data within a list and to display the list in a rectangle within a window. The List Manager lets you create scrollable one-column lists or multicolumn lists. By default, it creates lists that contain only unstyled text, but with extra effort, you can use the List Manager to create lists that display items graphically. If you only need to allow the user to select one item from a small group of items, a pop-up menu may be more appropriate than a list. If, however, you would like the user to be able to select one of many items or to be able to select multiple items, the List Manager provides a convenient and intuitive interface. The List Manager provides routines that allow you to create, manipulate, and display lists. It can also respond appropriately to a mouse click within a list by, for example, scrolling a list when the user clicks in a scroll bar. Thus, using the List Manager is easier than using the Control Manager and QuickDraw to create a scrolling list of items.

The programming interface for List Manager is declared in the following header files:

Mac OS X header: Carbon/Carbon.h
Mac OS 9 header: Lists.h



© 2001 Apple Computer, Inc. (Last Updated July 17, 2001)