Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!cbosgd!ucbvax!ernie.Berkeley.EDU!carlton From: carlton@ernie.Berkeley.EDU (Mike Carlton) Newsgroups: net.micro.mac Subject: Request for help with Standard File Message-ID: <15332@ucbvax.BERKELEY.EDU> Date: Tue, 19-Aug-86 16:57:50 EDT Article-I.D.: ucbvax.15332 Posted: Tue Aug 19 16:57:50 1986 Date-Received: Wed, 20-Aug-86 04:54:19 EDT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: carlton@ernie.Berkeley.EDU (Mike Carlton) Organization: University of California, Berkeley Lines: 30 I'm using SFGetFile, (actually SFPGetFile, which is the same except that I'm giving it a custom dialog), and I want to present one of two groups of files, based on which of a pair of radio buttons is active. What I've done is told SFGetFile to display all types of files, and then I use the file filter procedure to filter out one of the two groups after it reads the status of the radio buttons. The problem comes when the user hits the other radio button: I want the file list to display a different group of files now. So, I need SFGetFile to read the volume info again and call my file filter for each file. These are the same actions as if you hit the Drive button, but it must apply to the current disk. Any ideas on how to do this? I've tried posting a disk event for the drive holding the current disk (thinking to fool SF by telling it the disk has just been inserted), but it either ejects the disk or ignores the event. I've also tried decrementing the global value SFSaveDisk (which contains the current disk number) and telling SF that the Drive button was hit, but it ignores the value and just writes a new value after cycling to the next drive. Just to make things more interesting, it needs to be done in a "safe" way, e.g. no jumping into the code of Pack3, as there are already at least 2 versions of Standard File and there may be more. Thanks in advance for any ideas. Mike Carlton "Bugs Mr. Rico, zillions of them" -- Starship Trooper