Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!unmvax!grumpy.cs.unm.edu!stone From: stone@grumpy.cs.unm.edu (Andrew Stone) Newsgroups: comp.sys.next Subject: Re: Scrolling Text Lists, whatever Summary: ListView class Keywords: Matrix, SelectionCell, Lists Message-ID: <233@unmvax.unm.edu> Date: 18 Jul 89 14:14:27 GMT References: <2143@sjuvax.UUCP> Sender: news@unmvax.unm.edu Reply-To: stone@grumpy.cs.unm.edu () Distribution: usa Organization: University of New Mexico at Albuquerque Lines: 45 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! !! ||<<++>>||<<-->>||<<==>>||<<++>>||<>||<<++>>||<<-->>||<<==>>||<<++>>||