Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ncar!boulder!gore!jacob From: jacob@gore.com (Jacob Gore) Newsgroups: comp.sys.next Subject: Re: How to obtain object id's loaded with loadNibFile Message-ID: <130072@gore.com> Date: 29 May 90 04:59:04 GMT References: <1990May27.193144.21730@watcgl.waterloo.edu> Reply-To: jacob@gore.com (Jacob Gore) Organization: Gore Enterprises Lines: 23 / comp.sys.next / jvkelley@watcgl.waterloo.edu (Jeff Kelley) / May 28, 1990 / > In article <1990May27.193144.21730@watcgl.waterloo.edu> > jvkelley@watcgl.waterloo.edu (Jeff Kelley) writes: > >How can an application determine what objects were loaded > >using the Application class' loadNibFile method? > ... > Easy, stupid. The id returned by the loadNibFile with be that > of the new panel. Use the contentView method to get the panel's > view hierarchy, then use the findViewWithTag method to find the > controls in the view hierarchy. > > Of course this requires that unique tags be assigned to the controls, > but for sliders, buttons, etc. you can do that with interface builder. > If you really want to strain your brain, explain how to set the tag > of a custom control (i.e. application created Control subclass) > using interface builder. Is it possible? Sorry to interrupt your string of self-abuse, but: couldn't you just assign names to these controls, and then use NXGetNamedObject()? Jacob -- Jacob Gore Jacob@Gore.Com boulder!gore!jacob