Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!uwm.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!jpd00964 From: jpd00964@uxa.cso.uiuc.edu Newsgroups: comp.sys.next Subject: Re: Can a docView belong to multiple Sc Message-ID: <246300068@uxa.cso.uiuc.edu> Date: 29 Nov 89 10:40:19 GMT References: <22124@<1989Nov28> Lines: 19 Nf-ID: #R:<1989Nov28:22124:uxa.cso.uiuc.edu:246300068:000:836 Nf-From: uxa.cso.uiuc.edu!jpd00964 Nov 28 11:39:00 1989 /* Written 8:21 pm Nov 27, 1989 by izumi@violet.berkeley.edu in uxa.cso.uiuc.edu:comp.sys.next */ /* ---------- "Can a docView belong to multiple Sc" ---------- */ >It seems that in order to have two separate views into a single >document, a sigle docView must be added to multiple ScrollViews >at the same time. Is this possible? > >How about Views in general? Can a View added to multiple >superViews at the same time? >Considering that the instance variable 'superview' will contain >only one pointer, this probably is not possible. Actually, this is possible, just not easy. Actually, it is easy. Create a subclass of view which has an array of superviews and an array of subviews. You could then use this view as the "glue" for your multiple superviews. A bunch of methods would need to be added to. Michael Rutman SoftMed