[comp.sys.mac.misc] Help with List Manager and MDEF

vrm@cathedral.cerc.wvu.wvnet.edu (Vasile R. Montan) (10/15/90)

My big problem:  Calling the List Manager properly
     HELP!  I am writing a program which is intended to be shareware, but I 
am having a terrible time trying to figure out how to use the List Manager.  
I have read Inside Macintosh, but since there are no example programs 
given, I don't have a model to follow.  I bought Macintosh Technical Notes, 
but these don't contain the information I need.  Macintosh Revealed, which 
is usually friendly and clear, does not explain the List Manager.
     I have gotten my lists to work to some extent, but I must be calling 
some routine wrong, because I am getting strange problems.  Even if I tell 
the List Manager to only select one cell at a time, it will sometimes 
erratically select other cells on its own.  When I click on one cell, other 
cells will sometimes flicker with highlighting for a split-second.  When I 
call the List Manager to see what cells are highlighted, it gives results 
which are usually wrong.  I can't get the list to respond to Update events 
properly.  The system occasionally crashes.  (Also, when I use a list in a 
dialog, the scroll bars don't work, but I've never gotten scroll bars to work 
in dialogs anyway.)
     If you have some spare code lying around (preferably Pascal-  I'm using 
Lightspeed Pascal), I would greatly appreciate it if you could show it to 
me.  What I really need is a simple, complete, commented program which 
uses the List Manager properly.  Also, if you know of a book which 
describes the List Manager in a way less cryptic than Inside Macintosh, I 
would be grateful for this title.

Another thing I would like to know
     I am trying to write an MDEF.  I know about the restrictions on using 
globals (A5 world and all that), but I have gotten really rotten results 
anyway.  If you have written an MDEF (especially in Pascal), I would be 
interested in seeing the code to use as a model.  I want to write a 'Tools' 
menu and a 'Patterns' menu.
     Thank you for your help!  

Kurisuto