death@btr.btr.com (06/22/91)
I'm trying to figure out how to create a non-standard get-file dialog box that will allow the user to select a folder to be operated on, rather than a file. (I'm speaking in terms of system 6.x and before (after the intro of HFS, of course!), and not whatever goodies system 7 might offer). In particular, I'm looking for some kind of sample source code that would show me some way to accomplish this. I've seen dialogs where one clicks on a special button, and the currently displayed folder is acted upon (e.g. mpw), and others where the selected folder is acted upon (more 'mac-like', IMHO). But everything I have done has revealed that: when you have a folder selected in the dialog, the vrefnum field of the reply record is not updated, which makes it difficult to figure out either where the user is looking, or where the selected folder is located. And, even if it were updated, after the user clicks on whatever special button to act on that folder, how does the 'button' go about getting the dialog ended without faking a click to the cancel button? Any pointers, handles, thoughts or opinions would be appreciated, especailly if they were sent to me at death@btr.com Thank you very much! \david john burrowes