Newsgroups: comp.sys.next
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!wuarchive!uunet!stanford.edu!leland.Stanford.EDU!brod@jessica.Stanford.EDU
From: brod@jessica.Stanford.EDU (Brodie Lockard)
Subject: Creating scrolling matrix from code?
Message-ID: <1991May25.024025.18865@leland.Stanford.EDU>
Sender: news@leland.Stanford.EDU (Mr News)
Reply-To: brod@jessica.Stanford.EDU (Brodie Lockard)
Organization: Stanford University
Date: Sat, 25 May 91 02:40:25 GMT
Lines: 18

I'm trying to get the scrolling matrix from the ScrollDoodScroll example
to work with a window and scrollview created by code instead of by IB.
Things are not displaying correctly upon creation or while scrolling,
though the thing IS scrolling.  I do this:

1. Create matrix and fill it.
2. scrollView = [[ScrollView new] initFrame:&scrollRect];
3. [scrollView setAutodisplay:YES];
4. Create window.
5. [[window contentView] addSubview:scrollView];
6. Set scrollview attributes (vertScrollerRequired, etc.)
7. [scrollView setDocView:matrix];
8. [window makeKeyAndOrderFront:NULL];

I figure I'm doing something in the wrong order (step 6?), or IB is
doing some initialization that I'm not doing.  Any help?

Brodie Lockard      brod@jessica.stanford.edu
