Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!aramis.rutgers.edu!athos.rutgers.edu!wiechman From: wiechman@athos.rutgers.edu (NightMeower) Newsgroups: comp.sys.mac.programmer Subject: Re: SFPGetFile Keywords: A4 SFGetFile dlgHook Message-ID: Date: 3 Nov 90 21:31:48 GMT References: <1990Nov3.032143.27001@cpsc.ucalgary.ca> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 25 Your hack is probably only good for the very short term and perhaps not even that long. If you run under different systems you error will probably occur. Apple regularly updates its compilers that are used to build the system. It is highly possible that a certain registers will be used differently in a different version of the compiler. Look at dts sample code #18 which does exactly what you are requesting. The back door that is shown uses the fact that the sfreply.osype field is set to be the directory id of the hilited folder. You'll need a couple of global variables but following the example, you should be able to get something working on almost the first try in an hour or so. Plus, you will be more compatible in the long run. Sample code from the dts may be gotten by anonymously ftping to apple.com:pub/dts/mac/sc/sc-018-stdfile.hqx. Kevin -- =========================================================================== Kevin S. Wiechmann arpa: wiechman@rutgers.rutgers.edu This is only a test... for the next sixty seconds...