home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5326 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.6 KB  |  54 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!paladin.american.edu!europa.asd.contel.com!darwin.sura.net!mips!mips!ultra!steggie!eric
  3. From: steggie!eric (Eric Fronberg)
  4. Subject: how do outlets work?
  5. Message-ID: <1992Jul29.163410.23660@steggie.uucp>
  6. Sender: eric@steggie.uucp
  7. Reply-To: eric@steggie.mtview.ca.us
  8. Organization: Mountain View, Ca  USA
  9. Distribution: ba
  10. Date: Wed, 29 Jul 1992 16:34:10 GMT
  11. Lines: 41
  12.  
  13. This may be a naive question.  I'm confused about the workings of
  14. outlets in interface builder. I understand what outlets are supposed
  15. to do -- provide access to instances of other objects, but I'm 
  16. confused how Interface Builder accomplishes this.
  17.  
  18. So if I have a interface definition to myobject
  19.  
  20. @interface myobject:Object
  21. {
  22.     id  outlet1;
  23.     id  outlet2;
  24. }
  25. ...
  26. @end
  27.  
  28. I use IB to set outlet1 and outlet2 to some object instances in my 
  29. application. Later when I invoke the app and send a message to 
  30. myobject, outlet1 and outlet2 properly have object instances assigned 
  31. to them.
  32.  
  33. How does the startup code gain access to what I believe are private 
  34. variables in myobject to initialize them properly?  What syntax would 
  35. I use if I were to try to do this manually?  
  36.  
  37.  
  38. Maybe I'm off with some of my assumptions on how ObjectiveC works.  
  39. In any case I'd appreciate if someone could enlighten me.
  40.  
  41. Thanks,
  42.  
  43. -- eric
  44.  
  45.  
  46. --------------------------------------------------------------
  47. | Eric Fronberg    |  email: eric@steggie.mtview.ca.us       |
  48. | Mountain View CA |        ...!{sun,sgi,ultra}!steggie!eric |
  49. | 415 957-2748     |  vmail: "Hey you!"                      |
  50. --------------------------------------------------------------
  51.  
  52.  
  53.  
  54.