ftp.nice.ch/peanuts/GeneralData/Usenet/news/1989/CSN-89.tar.gz#/comp-sys-next/1989/Jul/Scrolling-Text-Lists,-whatever

This is Scrolling-Text-Lists,-whatever in view mode; [Up]


Date: Sun 18-Jul-1989 14:14:27 From: Unknown Subject: Re: Scrolling Text Lists, whatever Glenn, [email to you bounced, perhaps others are interested] Apparently 1.0 will have a clip-View object to do what you want. Until then, you can do what I did: Create a sub-Class of Matrix, let's say ListView. In its newFrame you set up what kind of cell it has, the SelectionCell is perfect for a text string [like a file name or whatever] Use a scrollText view from IB, and during -appDidInit:, set its' docView to listView. Here is a newFrame which works for me. CAPS are #defined as per your needs. @implementation ListView:Matrix + newFrame:(const NXRect *)frameRect { id proto = [SelectionCell new]; const NXSize size = { LIST_WIDTH,LIST_HEIGHT }; const NXSize Intersize = {LIST_WIDTH,-1. }; [ListView setCellClass:SelectionCell]; self = [super newFrame:frameRect]; [scrollView setDocView:self]; /// It may not be created yet!! [self setFlip:YES]; [self setCellSize:&size]; [self setIntercell:&Intersize]; [self setMode:NX_LISTMODE]; [self setPrototype:proto]; [self setTarget:[NXApp delegate]; /// or whoever handles action [self setAction:@selector(LIST_ACTION)]; return self; } Hope this helps. Andrew stone [at least I dance....] ||<<++>>||<<-->>||<<==>>||<<++>>||<<??>>||<<++>>||<<-->>||<<==>>||<<++>>|| !! Andrew Stone !! the fictive milieu of !! !! stone@hydra.unm.edu <> contemporary society! !! ||<<++>>||<<-->>||<<==>>||<<++>>||<<??>>||<<++>>||<<-->>||<<==>>||<<++>>|| >From: weltyc@cs.rpi.edu (Christopher A. Welty)

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