🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
1 messages
1 total messages Started by John Michael Ashley Sat, 02 Jan 1993 16:15
trouble with textfieldcells in a matrix
#2007
Author: John Michael Ashley
Date: Sat, 02 Jan 1993 16:15
34 lines
1724 bytes
Hi.  I've got a problem selecting cells in a matrix.  The matrix contains
TextFieldCells, built from a prototype that looks like this:

  cell = [[TextFieldCell allocFromZone:[self zone]] initTextCell: NULL];
  [cell setEditable:NO];
  [cell setBordered:YES];
  [cell setAlignment:NX_LEFT];

The matrix is set up as follows:

  [matrix setPrototype:cell];
  [matrix setMode:NX_RADIOMODE];
  [matrix setTarget:self];
  [matrix setAction:@selector(cellSelected:)];

There's a little more to setting up the matrix than that, but I
believe this is what is relevant to the problem.

Now, when the application is running, I can hold the mouse button
down, and cells will highlight and unhighlight as I pass through them,
but I cannot select them except in the following way: if I drag the
mouse outside of the bounds of the matrix and then let the mouse
button up, the last cell selected before leaving the bounds of the
matrix gets selected.  Strange!

[By "selected", I mean the cellSelected: message gets sent.]

I've gotten this to work using a prototype that was an instance of a
ButtonCell, but I need to use a TextFieldCell.

I'm stuck, and would appreciate any help you can offer.

Thanks, and happy new year.
Mike
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads