Path: utzoo!attcan!uunet!amdahl!ames!pasteur!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: List Manager Problem Message-ID: <6730@hoptoad.uucp> Date: 10 Mar 89 20:27:44 GMT References: <11032@ut-emx.UUCP> <6704@hoptoad.uucp> <11103@ut-emx.UUCP> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 21 In article <11103@ut-emx.UUCP> newman@emx.UUCP (David Newman) writes: >Tim Maroney suggested that I post my list initialization code >and my filter proc to see if they were the problem. Here they >are. Tim, I'll try your suggestion tonight. I think I've found the problem. I have never been able to get the List Manager to work with a rectangle of (0, 0, 1, 0) even though it's recommended in the documentation. There always needs to be at least one cell. I have tried over and over to get it to work with no cells at the beginning, but it always crashes. This would seem to be your problem: >SetRect(dataBounds, 0, 0, 1, 0); (* Specify initial 1x0 list*) > > (* Create an empty item list, 0 rows by 1 column *) > ItemList := LNew(itemRect,dataBounds,cellSize,0,theWindow,notDrawn, > noGrow,noHScroll,vScroll); Try it with a "SetRect(dataBounds, 0, 0, 1, 1);" and see if it works. -- Tim Maroney, Consultant, Eclectic Software, sun!hoptoad!tim "Jesus died for somebody's sins, but not mine." -- Patti Smith