Article View: comp.sys.next.programmer
Article #1129lots of objects to display
From: John W. Wooten
Date: Thu, 13 Aug 1992 20:45
Date: Thu, 13 Aug 1992 20:45
20 lines
1068 bytes
1068 bytes
I have an app in which I have a lot of elements, which may have many different geometrical shapes, but are subclassed from a general element object which is a subclass of View. As I build them, they are stored in a list. I want them to be drawn in a View (myView) in myWindow. Each element subclass has a drawSelf method and each instance has it, of course. When my controller does a [myView display], the background appears, but does each element have to be individually sent a [myElement drawSelf]? It then seems that they each have to be a subView of the original View. Somehow it should be simpler than this, so I think I'm missing something. -- ----------------- J. W. Wooten
Technical Details
Message-ID:
<1992Aug13.204505.26009@ornl.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!destroyer!gatech!utkcs2!ornl!usenetShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!destroyer!gatech!utkcs2!ornl!usenet From: woo@ornl.gov(John W. Wooten) Subject: lots of objects to display Message-ID: <1992Aug13.204505.26009@ornl.gov> Sender: usenet@ornl.gov (News poster) Organization: Oak Ridge National Laboratory Date: Thu, 13 Aug 1992 20:45:05 GMT Lines: 20