Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: FilterProc with Standard File Message-ID: <7268@hoptoad.uucp> Date: 12 May 89 20:39:23 GMT References: <2768@natinst.natinst.com> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 33 In article <2768@natinst.natinst.com> brian@natinst.com (Brian H. Powell) writes: > We want to use our own FilterProc (not the file-filter type, but the >modal dialog type) with Standard file (SFPGetFile, SFPPutFile). > The problem is that we lose the ability to handle things like > * typing scrolls the list of files > * arrow keys scrolling the list of files > * tab switches disks > * popup on the folder name shows you a list of folders > * etc. (You know, all the normal stuff you usually see.) I've written lots of these filter procs (my software uses hacked Standard File more often than the vanilla version, truth to tell) and I've never seen these problems, so I have to think your filter proc is in error. Most likely you are returning true when you mean false and vice versa; if you return true on keyboard and mouse events that you aren't handling yourself, you'd get the behavior described above. > Any suggestions, either on how to get the Mac to do what we want >directly, or on how to duplicate the operation of the Standard File filter in >our own filter? > > Thanks in advance. You're welcome in advance; hope this does the trick for you. -- Tim Maroney, Consultant, Eclectic Software, sun!hoptoad!tim "Now hear a plain fact: Swedenborg has not written one new truth: Now hear another: he has written all the old falshoods. And now hear the reason. He conversed with Angels who are all religious, & conversed not with Devils who all hate religion..." - Blake, "The Marriage of Heaven and Hell"