Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: List Bummers Revisited Message-ID: <9304@hoptoad.uucp> Date: 15 Dec 89 22:49:00 GMT References: <977@biar.UUCP> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 23 es2q+@andrew.cmu.edu (Erik Warren Selberg) writes: >>Is there any way to access >>variables in the main program from an LDEF, and if so, how??! what am I doing >>wrong? In article <977@biar.UUCP> trebor@biar.UUCP (Robert J Woodhead) writes: >Basically, you need to set things up in your LDEF so that your "A5" world >is correct. TN256 should point you in the right direction. Not really. There's no way to make the linker generate the correct A5 offsets in a separate code resource. It generates these when creating the application code resources, but even if you can extract them from the location map, there's no way to tell the linker to use the same offsets when generating the LDEF resource. Either putting shared data structures in the refCon or faking out the LDEF to actually be part of your program (I suggested one way, Amanda another) is the way to go. -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com Feminism that refuses to use the word "patriarchy" is kin to abolitionism that refuses to use the word "slavery".