Path: utzoo!attcan!uunet!lll-winken!sun-barr!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!daver!kcdev!genco!rad From: rad@genco.uucp (Bob Daniel) Newsgroups: comp.sys.mac.programmer Subject: Re: New convention for owned resources--addendum Message-ID: <89@genco.uucp> Date: 19 Oct 90 17:33:31 GMT References: <2001.271ca261@waikato.ac.nz> <2005.271d7a03@waikato.ac.nz> Reply-To: rad@genco. (Bob Daniel) Organization: Gentry & Assoc. Excelsior Springs, MO Lines: 24 In article <2005.271d7a03@waikato.ac.nz> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes: > >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". I've attempted to implement something similar to this. The problem is that you can't (or I couldn't figure out how to) load a resource by name using, ie, a wildcard. I'm writing a DA that allows externals to be written by other developers. I would like more than just resource type to determine the type of resource they have written (code resource, that is). If using the above example; "XCMDFred:Properties", I need the ability to test to see if the resource exists containing 'Fred'.. thus, Get1NamedResource("*Fred*",type). If null is returned, no resources exist with 'Fred' in it. Of course for multiple resources with 'Fred' in it, you need CountNamedResources and Get indexed resources with the ability to use wildcards. Is there another approach to this? Is there an alternative in Sys7? _________ moof moof