Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!ames!ptsfa!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac Subject: Re: SFgetFile (or whatever) suggestion Message-ID: <2686@hoptoad.uucp> Date: Sat, 8-Aug-87 19:01:27 EDT Article-I.D.: hoptoad.2686 Posted: Sat Aug 8 19:01:27 1987 Date-Received: Sun, 9-Aug-87 12:14:31 EDT References: <12320826850.14.P.PRIAPUS@MACBETH.STANFORD.EDU> <5709@ut-ngp.UUCP> <1857@ihlpf.ATT.COM> <577@cup.portal.com> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Distribution: world Organization: Centram Systems, Berkeley Lines: 18 It seems that a programmer could readily add a way to search from SFGetFile by simply adding a "Find" button to the dialog, using the usual easy SFGetFile hacking techniques, and then calling OpenDeskAcc on Apple's "Find File" desk accessory. It's not too hard (in fact, it's almost trivial) to make a modeless desk accessory act like a modal one; just wait until the frontmost window is no longer a DA window (using the window class field). I did this for a twenty-line "Login Intermail" program. Then, after the DA completes, tell standard file to redraw - since Find File has reset the low-memory globals for where standard file last was, this ought to be sufficient. Of course, this has to be done on an application by application basis - Findswell is an INIT that plays some funky games with the standard file package so the Find button is always there, reagrdless. This is a better solution in some ways. -- Tim Maroney, {ihnp4,sun,well,ptsfa,lll-crg,frog}!hoptoad!tim (uucp) hoptoad!tim@lll-crg (arpa)