home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / next / programm / 5747 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.2 KB  |  38 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!psinntp!svc!news
  3. From: moose@svcdudes.com
  4. Subject: Re: How can i get an object-id via tag from a panel ?
  5. Message-ID: <1992Aug21.170121.25785@svcdudes.com>
  6. Sender: news@svcdudes.com
  7. Reply-To: moose@svcdudes.com
  8. Organization: Software Ventures, Inc.
  9. References: <1992Aug20.141249.21764@ppgfr.uucp>
  10. Distribution: na
  11. Date: Fri, 21 Aug 92 17:01:21 GMT
  12. Lines: 24
  13.  
  14. In article <1992Aug20.141249.21764@ppgfr.uucp> wolpert@mars (Florian Wolpert)  
  15. writes:
  16. > Hi NeXTers,
  17. > in my application, i have a lot of panels with a lot of buttons
  18. > on it. i don't want to draw conections (via IB) from every button
  19. > to my control-object and visa versa. Now i have set the tag-numbers
  20. > of all buttons but how can i access the button-id while only having
  21. > the panel-id. I want to do something like this :
  22. >    for (i=0;i<30;i++) {
  23. >       [[panel getIdForTag:i] setState:0];
  24. >    }
  25. > How can i do this or how can i emulate this getIdForTag-method ? 
  26.  
  27. Straight from DL under View
  28.  
  29. - findViewWithTag:(int)aTag    Returns subview with aTag as its tag
  30.  
  31. --
  32. Michael Rutman            |    moose@svcdudes.com
  33. Cubist                |    makes me a NeXT programmer
  34. Software Ventures        |    maker of MicroPhone Pro
  35. #include <std.disclaimer>    |    really offesive political statement
  36.