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

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!destroyer!gatech!utkcs2!ornl!usenet
  3. From: woo@ornl.gov(John W. Wooten)
  4. Subject: lots of objects to display
  5. Message-ID: <1992Aug13.204505.26009@ornl.gov>
  6. Sender: usenet@ornl.gov (News poster)
  7. Organization: Oak Ridge National Laboratory
  8. Date: Thu, 13 Aug 1992 20:45:05 GMT
  9. Lines: 20
  10.  
  11. I have an app in which I have a lot of elements, which may have
  12. many different geometrical shapes, but are subclassed from a general  
  13. element object which is a subclass of View.  As I build them, they are  
  14. stored in a list.
  15.  
  16. I want them to be drawn in a View (myView) in myWindow.  Each element   
  17. subclass has a drawSelf method and each instance has it, of course.
  18.  
  19. When my controller does a [myView display], the background appears, but  
  20. does each element have to be individually sent a [myElement drawSelf]?
  21. It then seems that they each have to be a subView of the original View.
  22.  
  23. Somehow it should be simpler than this, so I think I'm missing  
  24. something.
  25.  
  26.  
  27.  
  28. --
  29. -----------------
  30. J. W. Wooten
  31.