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

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!uunet.ca!digifix!sanguish
  3. From: sanguish@digifix.com (Scott Anguish)
  4. Subject: Re: Accessing the values of variables in other objects?
  5. Message-ID: <1992Jul22.002121.809@digifix!uunet.ca>
  6. Sender: sanguish@digifix!uunet.ca
  7. Reply-To: sanguish@digifix.com
  8. Organization: Digital Fix Development
  9. References: <1992Jul21.234421.8444@u.washington.edu>
  10. Date: Wed, 22 Jul 1992 00:21:21 GMT
  11. Lines: 16
  12.  
  13. Lloyd P. Goldwasser writes
  14. > Here's a simple Objective-C question with, I suspect, a simple yes-or-no  
  15. > answer.
  16. > Is it possible to access directly the values of variables in other objects?
  17.  
  18.     The best way is to do it with the method returns value style.
  19.  
  20.     Otherwise, you aren't really working in a very Object Oriented way,  
  21. plus you don't get the benefit of being able to change the variable type,  
  22. without having to change anything in the objects that actually use it.
  23.  
  24. -- 
  25. - Scott Anguish -
  26. sanguish@digifix.com (NextMail)
  27.  
  28.