ftp.nice.ch/peanuts/GeneralData/Usenet/news/1991/CSN-91.tar.gz#/comp-sys-next/1991/May/Creating-scrolling-matrix-from-code?

This is Creating-scrolling-matrix-from-code? in view mode; [Up]


Date: Sun 25-May-1991 02:40:25 From: brod@jessica.Stanford.EDU (Brodie Lockard) Subject: Creating scrolling matrix from code? 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

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.