🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#1274
From: moose
Date: Fri, 21 Aug 1992 17:01
24 lines
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
Technical Details
Message-ID: <1992Aug21.170121.25785@svcdudes.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!svc!news
References: <1992Aug20.141249.21764@ppgfr.uucp>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!svc!news
From: moose@svcdudes.com
Subject: Re: How can i get an object-id via tag from a panel ?
Message-ID: <1992Aug21.170121.25785@svcdudes.com>
Sender: news@svcdudes.com
Reply-To: moose@svcdudes.com
Organization: Software Ventures, Inc.
References: <1992Aug20.141249.21764@ppgfr.uucp>
Distribution: na
Date: Fri, 21 Aug 92 17:01:21 GMT
Lines: 24