[comp.sys.mac.programmer] Warning: bug in MPW List Manager interface

matthews@eleazar.dartmouth.edu (Jim Matthews) (10/21/88)

I just spent a bunch of time stumbling over a stupid error in the MPW
2.0.2 interface files.  The entry in PackIntf.p lists LScroll's
arguments as (dRows, dCols: integer; list: ListHandle).  The
Programmer's Online Companion (version 2.0) lists it the same way.
According to Inside Mac IV and my testing, both are wrong: dCols should
come before dRows.  It's a silly mistake, but it had me wondering when a
call to scroll a one-dimensional list (in the wrong dimension) produced
no effect.

The MPW C include file is correct.  I assume that Steve Capps (author
of the Programmer's Online Companion) used the Pascal interface as a
source, and hence his error.  Other on-line reference DAs may have the
same problem.

Jim Matthews
Dartmouth Sofware Development