Path: utzoo!telly!attcan!uunet!efi!tim From: tim@efi.com (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: Standard File help needed Message-ID: <1990Oct10.180515.9025@efi.com> Date: 10 Oct 90 18:05:15 GMT References: <21010@well.sf.ca.us> Organization: Electronics For Imaging, Inc. Lines: 28 In article <21010@well.sf.ca.us> smoke@well.sf.ca.us (Nicholas Jackiw) writes: >Can anyone give me a hand with some Standard File magic? >I'd like to implement an Open All button in the SFGetFile >dialog. As usual, this should be dimmed if the currently >viewed folder does not contain any files of the appropriate >fType. > >Unfortunately, I can't seem to find a reliable method >for determining when the directory has changed. Things >that I've tried: > >o Monitoring CurDirStore > >This changes erratically during directory browsing, but not >reliably. Not according to my experience and to Tech Note #80, which explicitly states that CurDirStore "contains the dirID of the directory that SF is displaying" and that "This information can be particularly useful at hook time". CurDirStore tracks directory changes during Standard File. >o Monitoring SFSaveDisk > >This doesn't seem to change at all (except perhaps once at the >very end of the dialog). Again, this contradicts both my experience and Tech Note #80.