brod@jessica.Stanford.EDU (Brodie Lockard) (05/25/91)
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