Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!ucsd!pacbell.com!pacbell!hoptoad!fidogate!f444.n161.z1.FIDONET.ORG!Jim.Lynch From: Jim.Lynch@f444.n161.z1.FIDONET.ORG (Jim Lynch) Newsgroups: comp.sys.mac.programmer Subject: Re: Scrolling Dialog User Item? Message-ID: <11137.2783D3B9@fidogate.FIDONET.ORG> Date: 2 Jan 91 12:56:28 GMT Sender: ufgate@fidogate.FIDONET.ORG (newsout1.26) Organization: FidoNet node 1:161/444 - BMUG, Berkeley CA Lines: 53 > Subj: SCROLLING DIALOG USER ITEM? > From: roy@alanine.phri.nyu.edu (Roy Smith) > Date: 10 Dec 90 15:11:34 GMT > Organization: Public Health Research Institute, New York City > Message-ID: <1990Dec10.151134.14340@phri.nyu.edu> > Newsgroups: comp.sys.mac.programmer > > > I want to make a modal dialog box that looks > sort of like the standard file picker, with a scrolling > list of text items. Is there an easy way to do this? I'm > sort of new to Mac programming, so excuse me if this is a > trivial question. > Yes, there is a way that's easier than just using user items, etc. but I only know its name: it's called The List Manager and is described in Inside Macintosh volume four. > > I just spent two weeks figuring out that the reason > all my attempts to use user dialog items resulted in bombs > was because I didn't declare my callback procedure to be type > "pascal" in LSC; a pretty frustrating experience that almost > made me swear off mac programming completely (wouldn't be the > first time I quit!). > Programming is like this. Lots of times, you have to get away from the machine and think/read about it. Callback routines in particular are somewhat advanced so give yourself credit for being able to solve it. Read chapter 4 of Inside Mac vol. one (assembly language) for some insights necessary when you're working in C trying to interface with an OS written in pascal. > > /roy > -- > Roy Smith, Public Health Research Institute > 455 First Avenue, New York, NY 10016 > roy@alanine.phri.nyu.edu -OR- {att,cmcl2,rutgers,hombre}!phri!roy > "Arcane? Did you say arcane? It wouldn't be Unix if it wasn't arcane!" -Jim /*********************************************************************/ /* Jim Lynch on BMUG BBS in Berkeley, CA */ /* (415) 849-BMUG */ /* or leave a voice message at: */ /* (415) 521-7367 */ /*********************************************************************/ -- Jim Lynch - via FidoNet node 1:125/777 UUCP: ...!uunet!hoptoad!fidogate!161!444!Jim.Lynch INTERNET: Jim.Lynch@f444.n161.z1.FIDONET.ORG