Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!comp.vuw.ac.nz!waikato!ldo From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) Newsgroups: comp.sys.mac.programmer Subject: New convention for owned resources--addendum Message-ID: <2005.271d7a03@waikato.ac.nz> Date: 17 Oct 90 20:46:43 GMT References: <2001.271ca261@waikato.ac.nz> Organization: University of Waikato, Hamilton, New Zealand Lines: 28 Something else occurred to me after I got home last night (funny, isn't it...) You could have two code resources with the same name, but of different types, in the same resource file. You'd need some way of distinguishing the resources owned by one from those owned by the other. In other words, you'd need to incorporate the type of the owning resource into the names of the owned resources. You could do this simply by prepending the four-character resource type onto the names of the owned resources. Thus, the resources owned by XCMD "Fred" would be called "XCMDFred:Properties" and "XCMDFred:Dialog". Further complication: the Resource Manager ignores case in resource names, but it does apparently distinguish diacritical marks (Inside Mac page I-110). This case-insensitivity may be a problem, since resource types are case-sensitive. If it is likely to be a problem, you'd need to add another byte to the name to get around this. By the way, those who think that the existing resource ID convention is all you need can ignore this discussion... Lawrence D'Oliveiro fone: +64-71-562-889 Computer Services Dept fax: +64-71-384-066 University of Waikato electric mail: ldo@waikato.ac.nz Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00 To someone with a hammer and a screwdriver, every problem looks like a nail with threads.