Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!system From: system@asuvax.eas.asu.edu (Marc Lesure) Newsgroups: comp.sys.mac.programmer Subject: SFPGetFile hooks Message-ID: <462@asuvax.eas.asu.edu> Date: 9 Apr 91 09:18:43 GMT Organization: Arizona State University, Tempe, AZ Lines: 22 I'm using SFPGetFile with my own DlgHook procedure to handle my own buttons. When my button is hit (a NEW button), I want to put up a SFPutFile dialog so that I can create a new file. Two problems arise: 1) If I use a different DlgHook with the SFPutFile, the system crashes. If I pass a 0L, it works. (I need to change some of the text, so I need the DlgHook procedure.) 2) Is there a way of passing the reply from the SFPutFile back to and through the SFPGetFile call? (I want to avoid using global variables if I can). Any ideas? ----------------------------------------------------------------------- Marc Lesure / Arizona State University / Tempe, AZ "Between the world of men and make-believe, I can be found..." "False faces and meaningless chases, I travel alone..." "And where do you go when you come to the end of your dream?" UUCP: ...!ncar!noao!asuvax!lesure Internet: lesure@asuvax.eas.asu.edu