Article View: comp.sys.next.programmer
Article #2390Re: array of id's ? Palette'ized objects
From: Ron Pomeroy x(Coop)
Date: Wed, 27 Jan 1993 14:54
Date: Wed, 27 Jan 1993 14:54
27 lines
1967 bytes
1967 bytes
In article <C1HrCt.M33@helios.physics.utoronto.ca> mcgowan@emerald.physics.utoronto.ca (Patrick McGowan) writes: >>Maybe this is a dumb question, but I'd like to be able to access an array >>of id's (outlets) so that I can access the one of my choice depending on a >>selection made at run time....in this case I am presented a range of >>operations to perform on some data. These operations are listed in a >>PopUp. It would be easiest to use the index of the selected item to access >>an array element rather than a hard name like calc1, calc2, calc3...etc. >>Am I missing something, or is this not a common type of problem? >> >>Also, can a non-view object be palette'ized for use in IB? I'd like to be >>able to hook up one of the above calc objects using IB. ie. drag one off a >>palette into the .nib Objects well (instantiate) for graphical connection >>to other objects. >> >>Thanks in advance. Sounds like a job for a List (as in the List class in the Appkit). As far as palette'izing objects goes...me thinks someone reciently uploaded an example of doing just that to sonata (something like ObjectPalette.tar.Z ??) -- Ronald Pomeroy "The Internet is just a giant petri dish" Advanced Micro Devices CAM Applications Group rpomeroy@aunext1.amd.com (NeXTmail preferred)
Technical Details
Message-ID:
<1993Jan27.145413.20955@dvorak.amd.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!usc!howland.reston.ans.net!spool.mu.edu!sgiblab!rtech!amdahl!amdcad!dvorak.amd.com!usenetReferences:
<C1HrCt.M33@helios.physics.utoronto.ca>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!usc!howland.reston.ans.net!spool.mu.edu!sgiblab!rtech!amdahl!amdcad!dvorak.amd.com!usenet From: rpomeroy@aunext1.amd.com (Ron Pomeroy x(Coop)) Subject: Re: array of id's ? Palette'ized objects Message-ID: <1993Jan27.145413.20955@dvorak.amd.com> Sender: usenet@dvorak.amd.com (Usenet News) Reply-To: rpomeroy@aunext1.amd.com Organization: Advanced Micro Devices, Inc.; Austin, Texas References: <C1HrCt.M33@helios.physics.utoronto.ca> Distribution: usa Date: Wed, 27 Jan 93 14:54:13 GMT Lines: 27