[comp.sys.next] Can a docView belong to multiple Sc

jpd00964@uxa.cso.uiuc.edu (11/29/89)

/* 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