Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!well!svc From: svc@well.UUCP (Leonard Rosenthol) Newsgroups: comp.sys.mac.programmer Subject: Re: Customizing SFGetFile: adding a button/multiple files Summary: Sorry, no List Manager Here... Message-ID: <11164@well.UUCP> Date: 28 Mar 89 19:34:07 GMT References: <37794@bbn.COM> Lines: 28 In article <37794@bbn.COM>, mesard@bbn.com (Wayne Mesard) writes: > 2) I want the user to be able to select multiple files (via shift-click > and command-click). Assuming that item 7 (the file name list) uses the > list manager I should be able to do this if I can just get my hands on > the ListHandle (to modify the selFlags and to see which fields are > selected when the user hits Open). Is this possible? I'm not anxious > to rewrite the SFGetFile LDEF just because no one saw fit to give me > access to its data structure. (Again, I'm assuming that it really does > use Mr. List Manager.) > No such luck on this one! Standard File DOES NOT use the List Manager, as it has been around MUCH longer than the LM and as such does it's own lists - which are SINGLE SELECTION ONLY! If you need to have the user select multiple files, then you can do one of two things (or both for that matter??): 1) Write your own StandardFile replacement. Other products have done it to solve this problem, and if you then replease it into the public domain, maybe more application willl adopt it for SF replacment. 2) Do a hack like what Stuffit does by keeping StandardFile up, but keeping a list in the background of each file as it is selected and then waiting till the user clicks on a 'done' button before working on all of the selected files. (it's still one at a time selection, but you 'batch' them up) -- +--------------------------------------------------+ Leonard Rosenthol | GEnie : MACgician Lazerware, inc. | MacNet: MACgician UUCP: svc@well.UUCP | ALink : D0025