Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucdavis!csusac!garlick From: garlick@csusac.csus.edu (Jim Garlick) Newsgroups: comp.sys.next Subject: SelectionCell inside a Matrix Message-ID: <1990Jan18.220642.1067@csusac.csus.edu> Date: 18 Jan 90 22:06:42 GMT Distribution: usa Organization: California State University, Sacramento Lines: 29 I've created a matrix of selectionCells, and set the matrix as a docView of a scrollView. The problem I'm having is not being able to set the title of the selectionCells. Here's some code: [myScrollView setHorizScrollerRequired:YES]; [myScrollView getDocVisibleRect:&aSVRect]; aSVRect.size.height = 1000; /* need more height for matrix */ protoCell = [SelectionCell newTextCell:"proto"]; myMatrix = [Matrix newFrame:&aSVRect mode:NX_LISTMODE numRows:50 numCols:1]; [myMatrix setScrollable:YES]; [myMatrix setAutodisplay:YES]; [myMatrix setTitle:"first" at:1 :1]; [myMatrix drawCellAt:1 :1]; /* shouldn't need */ [myScrollView setDocView:myMatrix]; Putting in a [myMatrix display] before or after the setDocView doesn't seem to have an affect. The scrollVeiw was created in IB. From what I can get out of the documentation, it seems the first cell here should have the word "first" in it, but no. Any suggestions as to what's missing? Hope this is not inappropriate for this group. Thanks in advance. Bob Groendyke bobgro@csuchico.edu (I borrowed this account to post. Please send any responses to the group.)