NSMatrix cell at 0,0 acts differently from other cells
NSMatrix cell at 0,0 acts differently from other cells
- Subject: NSMatrix cell at 0,0 acts differently from other cells
- From: Charles Crowley <email@hidden>
- Date: Thu, 5 Jan 2006 14:54:35 -0700
I am using an NSMatrix of NSTextFieldCells as a control to allow the
marking of cells. The NSMatrix is in mode NSListModeMatrix. All cells
have a yellow background but have "draws background" initially off so
they show the white background of the matrix. When the user clicks on
a cell I toggle "draws background" and the cell displays its yellow
background. The yellow cells are the chosen ones.
This all works great with every cell but the cell at row 0, column 0.
That cell stays gray however many time I click on it. But it does
seem to be remembering its state because if I click on it to mark it
and then button down to click on another cell it turns yellow and
stays yellow until the button comes up. Then it goes back to gray. If
I click on it again to unmark it then button down on another cell
causes cell 0,0 to turn white until the mouse button comes up and
then it goes back to gray. The gray appears to be the same gray the
selected cells have when you have the mouse down over them, but then
all grays look the same.
What is so different about the cell at 0,0 and how can I get it to
act like the other cells?
Thanks, Charlie Crowley
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden