Path: utzoo!attcan!uunet!lll-winken!ames!pasteur!ucbvax!hplabs!hp-ses!hpcea!hpausla!jcl From: jcl@hpausla.HP.COM (Jeff Laing) Newsgroups: comp.sys.mac.programmer Subject: Re: Open Resource File List Message-ID: <2580007@hpausla.HP.COM> Date: 15 Jan 89 22:06:45 GMT References: <67009@ti-csl.CSNET> Organization: HP Australian Software Operation Lines: 22 Fred Hollander (holland@mips.csc.ti.com) writes in comp.sys.mac.programmer: > I would like to access all opened resource files. I know they are in a linked > list, but I can't find any documentation on how to access it. I've looked > in IM, Tech Notes and MacTutor. I have a related question. I want to be able to do the 'reverse' of Get1Resource(); that is, I want to be able to access a particular resource, which is NOT in the current resource file. Does anyone know how I can take the current application (and all resource files after it in the list) out of the resource search? I figure that the solution will be in the constructive use of the form oldfile = CurResFile(); UseResFile( ... some tricky expression ... ); ... my code to use the resource ... UseResFile(oldfile); but I don't know what the tricky expression will look like to identify the resource file BEFORE the current one. Any clues, pointers, sample code, free lunches, etc would be appreciated