Re: NSMatrix problem
Re: NSMatrix problem
- Subject: Re: NSMatrix problem
- From: Mark T <email@hidden>
- Date: Tue, 3 Jul 2001 12:30:07 -0400
Is there a reason why you need to create the matrix of checkboxes
programmatically? It can be done in IB-- simply drag out a
checkbox, hold down the option(alt) key, and drag out as many
checkboxes you need. The end result is are buttoncells configured
as a checkboxes that live within an NSMatrix.
At the very least, you could do the above and figure out how they
are configured to figure out what is wrong with your code. I
suspect it is a configuration problem on the NSMatrix; in
particular, when you click on the checkbox, it unchecks itself but
the matrix promptly rechecks it as it "selects" the cell containing
the checkbox.
I did create the NSMatrix in IB, that's what I've been doing all
along. The creation of the matrix is fine and the configuration
appears to be as well(radio mode, allows empty selection). But the
matrix refuses to allow both checkboxes to be unchecked after either
has been clicked on. I've tried [theMatrix deselectAllCells] with no
effect. I've also tried [[theMatrix cellAtRow:0 column:0]
setState:NSOffState] and [[theMatrix cellAtRow:0 column:0]
setIntValue:0] for each cell of the matrix. Same lack of result. Any
ideas?
Mark T.