Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!bgsuvax!denbeste From: denbeste@bgsuvax.UUCP (William C. DenBesten) Newsgroups: comp.sys.mac.programmer Subject: Re: New convention for owned resources--a proposal Message-ID: <6453@bgsuvax.UUCP> Date: 19 Oct 90 21:27:50 GMT References: <1990Oct19.042621.16644@midway.uchicago.edu> Organization: Bowling Green State University B.G., Oh. Lines: 39 In article <6449@bgsuvax.UUCP> denbeste@bgsuvax.UUCP (William C. DenBesten) writes: >Currently the 'key' when looking up a resource is ResType + ID. The >cleanest suggestion I can come up with would be to change the key to >be ResType + ID + Creator. Current calls could default to the creator >being the same as the creator for the application. From article <1990Oct19.042621.16644@midway.uchicago.edu>, by francis@daisy.uchicago.edu (Francis Stracke): > You probably could, by sticking the info into the resource map. > This is something that would take Apple's agreement; it would > be a system-software change. They would probably be loath to > go along with it, since it would be hard to keep it from breaking > on old systems that don't understand what the creator ID is doing > there. I wasn't clear, but I do think that Apple should be solving this problem on a 'global' level, rather than individuals on an adhoc basis. I just looked at Inside Macintosh, and it appears that there are 4 bytes in each resource map entry that are reserved for a handle to the resource when it is in memory. This space could probably be converted to hold creator information, and the file would probably look substantially similar, so old systems may have a chance of working. (There may be a problem with the system assuming that there should be zeroes there.) > Something to think about: would there be a call to lie about your > creator ID? (So that you could stick a resource into a file where > another entity could find it as its own) That is precisely what I would expect to be done with it. Desk accessories, xcmds, etc. would look up the information using their 'creator', rather than the application's creator. In this case, the current application would not be the proper creator to use. > > > | Francis Stracke | My opinions are my own. I don't steal them.| > | Department of Mathematics |=============================================| > | University of Chicago | A mathematician is a professional | > | francis@zaphod.uchicago.edu | schizophrenic.--Me. |