Path: utzoo!attcan!uunet!tank!ncar!unmvax!tut.cis.ohio-state.edu!cs.utexas.edu!sm.unisys.com!csun!polyslo!bwarkent From: bwarkent@polyslo.CalPoly.EDU (Brian Warkentine) Newsgroups: comp.windows.x Subject: Re: Resource oversight? Message-ID: <6112@polyslo.CalPoly.EDU> Date: 22 Nov 88 07:33:57 GMT References: <6841@batcomputer.tn.cornell.edu> <6842@batcomputer.tn.cornell.edu> Reply-To: bwarkent@polyslo.CalPoly.EDU (Brian Warkentine) Distribution: comp Organization: Cal Poly State University -- San Luis Obispo Lines: 20 In article <6842@batcomputer.tn.cornell.edu> gdykes@tcgould.tn.cornell.edu (Gene Dykes) writes: >> Am I overlooking something? (Finding representation type for a resource) > >Indeed I am, I guess. All I have to do is look it up in the widget's >core.resources list. Still, it seems that a convenience routine would >be nice. Isn't it a little more complicated than "looking it up". (i.e. It ain't a simple array search - you have to search the superclass resources too.) I agree that a convenience routine is needed. I've come up with the same basic solution as you, but is digging through the CoreClassPart the proper method? So how about it guys? Is there a 'proper' way of doing this. Brian Warkentine Cal Poly, San Luis Obispo, CA bwarkent@polyslo.calpoly.edu ...!ucbvax!voder!polyslo!bwarkent