Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!apple!daveo From: daveo@Apple.COM (David M. O'Rourke) Newsgroups: comp.sys.mac.misc Subject: Re: The Mac's resource fork: does Win 3 have one? Message-ID: <42672@apple.Apple.COM> Date: 5 Jul 90 18:57:08 GMT References: <2322.268f7cca@csc.anu.oz> <2964@gmdzi.UUCP> <7705@jarthur.Claremont.EDU> <2966@gmdzi.UUCP> <23070@boulder.Colorado.EDU> <2987@gmdzi.UUCP> <42649@apple.Apple.COM> <3038@gmdzi.UUCP> Organization: Apple Computer Inc, Cupertino, CA Lines: 34 strobl@gmdzi.UUCP (Wolfgang Strobl) writes: >This sounds indeed nice. A few questions: what is the search order in the >above resource search, i.e. what if there is more than one program running >and both have open resources files? In order to have an OS routine use my >own resource, I have to know some details about the internals of this >routine. Is all this officially documented? The search order is the most recently opened resource fork first, then the next one, next one, and finally the System File itself. As far as having more than one Application with an open resource fork Mulit-Finder keeps the resource search so that it appears "correct" to the currently running Application and only searches the System Wide resource forks, and any files the Application opened. Yes this is all officially documented as the Resource Manager was designed that way on purpose. ps. There has been an optimization that you can "force" the resource manager to only serach the most immediate resource file for the requested resource. A typical resource search path would look like the following.... System File <---- Application <--- Last File Next-to-last search order reverse of open order. Thankyou for the information, nice to see a measured response with some good content rather than the random flames. Any additional questions will be gladly answered. -- daveo@apple.com David M. O'Rourke _______________________________________________________________________________ I do not speak for Apple in *ANY* official capacity.