Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bionet!ames!haven!umd5!zben From: zben@umd5.umd.edu (Ben Cranston) Newsgroups: comp.sys.mac.programmer Subject: Re: Standard File and Desk Accessories Summary: Standard file stuff Message-ID: <4972@umd5.umd.edu> Date: 6 Jun 89 19:51:46 GMT References: <50967@tut.cis.ohio-state.edu> <7547@hoptoad.uucp> Reply-To: zben@umd5.umd.edu (Ben Cranston) Organization: University of Maryland, College Park Lines: 16 Re: Standard File's putting a 1 in the dialog's RefCon and blowing up if it has changed: the version I am looking at puts the local frame (A6) value of Standard File's main routine into the RefCon; the dialog hook routine and other callback routines then use this to access Standard File's globals. I suggested to the original poster (offline, via mail) that one solution would be to extend the item list handle by one word and plant a pointer back to the DA's globals there. Then the dialog hook routine could link from the dialog record to the item list and pick up the pointer. Too bad the dialoghook routine doesn't get the SFReply record as an argument. Then one could just extend that record in a straightforward manner to accomodate this sort of extension... -- Ben Cranston (Kingdom of Merryland UniSys 1100/92) Copyright 1989 (you may redistribute ONLY if your recipients can).