Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!snorkelwacker!paperboy!husc6!speed!bochner From: bochner@speed.harvard.EDU (Harry Bochner) Newsgroups: comp.sys.mac.programmer Subject: Re: Buttons in SFGetFile dialog Keywords: SFGetFile hook buttons custom Message-ID: <2545@husc6.harvard.edu> Date: 12 Apr 90 12:33:04 GMT References: <1049@biar.UUCP> Sender: news@husc6.harvard.edu Reply-To: bochner@speed.harvard.EDU (Harry Bochner) Distribution: usa Organization: Aiken Computation Laboratory, Harvard University Lines: 19 In article <1049@biar.UUCP>, trebor@biar.UUCP (Robert J Woodhead) writes: |>Ok, so I need to add a custom button to the standard file dialog. |>... What I |>need to do is be able to set a flag so that my main program knows the extra |>button is pressed. It would be lovely to be able to diddle the SFReply field |>but no can do apparently. Which means i have to alter a global from within the |>hook routine. Which means futzing with the A5-WORLD. I haven't done this in a long time, so maybe I'm out of date, but I don't think you need to worry about A5. Packages aren't DA's (despite some similarities), and as far as I know they run in the context of the application that called them. I did just what you're describing a few years ago, just writing into a global w/o worrying about A5, and it worked fine. I _think_ that program of mine runs under MultiFinder, but it's been a few years ... Harry Bochner bochner@endor.harvard.edu