Thread View: comp.sys.next.programmer
2 messages
2 total messages
Started by Florian Wolpert
Thu, 20 Aug 1992 14:12
How can i get an object-id via tag from a panel ?
Author: Florian Wolpert
Date: Thu, 20 Aug 1992 14:12
Date: Thu, 20 Aug 1992 14:12
19 lines
1180 bytes
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
Re: How can i get an object-id via tag from a panel ?
Author: moose
Date: Fri, 21 Aug 1992 17:01
Date: Fri, 21 Aug 1992 17:01
24 lines
1314 bytes
1314 bytes
In article <1992Aug20.141249.21764@ppgfr.uucp> wolpert@mars (Florian Wolpert)
writes:
> 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 ?
>
Straight from DL under View
- findViewWithTag:(int)aTag Returns subview with aTag as its tag
--
Michael Rutman | moose@svcdudes.com
Cubist | makes me a NeXT programmer
Software Ventures | maker of MicroPhone Pro
#include <std.disclaimer> | really offesive political statement
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads