stone@grumpy.cs.unm.edu (Andrew Stone) (07/18/89)
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! !! ||<<++>>||<<-->>||<<==>>||<<++>>||<<??>>||<<++>>||<<-->>||<<==>>||<<++>>||