Article View: net.micro.mac
Article #6904Re: Request for help with Standard File
From: lsr
Date: Wed, 20 Aug 1986 16:18
Date: Wed, 20 Aug 1986 16:18
30 lines
1786 bytes
1786 bytes
In article <15332@ucbvax.BERKELEY.EDU> carlton@ernie.Berkeley.EDU (Mike Carlton) writes:
>
>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.
>
Just return to Standard File a fake item number 101. This will cause it to
re-read the directory and re-filter the files. This is mentioned in Inside
Mac Volume IV (IMVIV), and will be supported in the future.
--
Larry Rosenstein
Object Specialist
Apple Computer
AppleLink: Rosenstein1
UUCP: {sun, voder, nsc, mtxinu, dual}!apple!lsr
CSNET: lsr@Apple.CSNET
Technical Details
Message-ID:
<140@apple.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!decvax!decwrl!sun!idi!apple!lsrReferences:
<15332@ucbvax.BERKELEY.EDU>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!decvax!decwrl!sun!idi!apple!lsr From: lsr@apple.UUCP Newsgroups: net.micro.mac Subject: Re: Request for help with Standard File Message-ID: <140@apple.UUCP> Date: Wed, 20-Aug-86 12:18:03 EDT Article-I.D.: apple.140 Posted: Wed Aug 20 12:18:03 1986 Date-Received: Sat, 23-Aug-86 21:59:33 EDT References: <15332@ucbvax.BERKELEY.EDU> Reply-To: lsr@apple.UUCP (Larry Rosenstein) Organization: Advanced Development Group, Apple Computer Lines: 30