🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1238

How can i get an object-id via tag from a panel ?

#1238
From: Florian Wolpert
Date: Thu, 20 Aug 1992 14:12
19 lines
1180 bytes
Hi NeXTers,

in my application, i have a lot of panels with a lot of buttons
on it. i don't want to draw conections (via IB) from every button
to my control-object and visa versa. Now i have set the tag-numbers
of all buttons but how can i access the button-id while only having
the panel-id. I want to do something like this :
   for (i=0;i<30;i++) {
      [[panel getIdForTag:i] setState:0];
   }
How can i do this or how can i emulate this getIdForTag-method ? 

Flo.
--
Reply-To: wolpert%ppgfr.uucp@germany.eu.net
2i-d&s : wolpert%dandsnx.uucp@germany.eu.net (NeXTmail preferred)
Hellige : wolpert%ppgfr.uucp@germany.eu.net
uni-fr  : wolpert@informatik.uni-freiburg.de
snail-mail to 2i Industrial Informatics, Haierweg 20e, D-7800 Freiburg
Technical Details
Message-ID: <1992Aug20.141249.21764@ppgfr.uucp>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!unido!ppgfr!mars!wolpert

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!unido!ppgfr!mars!wolpert
From: wolpert@mars (Florian Wolpert)
Newsgroups: comp.sys.next.programmer
Subject: How can i get an object-id via tag from a panel ?
Message-ID: <1992Aug20.141249.21764@ppgfr.uucp>
Date: 20 Aug 92 14:12:49 GMT
Sender: news@ppgfr.uucp
Organization: PPG Hellige, Freiburg, GERMANY
Lines: 19
Nntp-Posting-Host: mars
X-Newsreader: Tin 1.1 PL4