Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!samsung!uunet!rosie!aozer From: aozer@next.com (Ali Ozer) Newsgroups: comp.sys.next Subject: Re: NIB objects' id Message-ID: <282@rosie.NeXT.COM> Date: 12 Feb 91 19:19:53 GMT References: <222@qt.cs.utexas.edu> <467@nwnexus.WA.COM> Sender: news@NeXT.COM Organization: Next Computer, Inc. Lines: 23 Nntp-Posting-Host: twinpeaks.next.com In article <467@nwnexus.WA.COM> Doug Kent writes: >In article <222@qt.cs.utexas.edu> Pow-Hwee Tan writes: >> I have a programming question. How does one find out the ids of >>objects created by Interface Builder? > >I'm not sure I understand what you're trying to do, but perhaps what you >want is the 'tag' which you can set in Interface Builder and obtain >via the 'tag' method. Sounds like you need to use outlets. Outlets are instance variables of type id. Interface Builder allows you to visually connect outlets to other objects; thus you can get handles to objects created through IB. In your case, you'd probably want some central object (your subclass of Application, some controller, or an instance of your document class) to have an outlet which points at the matrix of radio buttons, or, if you wish, you can have a bunch of outlets pointing at the individual cells. The CalculatorLab example (in /NextDeveloper/Examples) shows the use of outlets (in the way the SimpleCalc object gets a handle to the TextField used to display results, for instance), as do some of the other examples. Ali, Ali_Ozer@NeXT.com