NSMatrix, changing selection of Radio Button
NSMatrix, changing selection of Radio Button
- Subject: NSMatrix, changing selection of Radio Button
- From: Renaud Boisjoly <email@hidden>
- Date: Mon, 18 Mar 2002 22:31:16 -0500
Hi all,
I'm certainly not a great programmer, but I manage to do simple
things... in any case, I cannot figure out this one.
I have an NSMatrix which is basically a set of two readio buttons as
dragged from IB to my window.
I can set which button is selected when I launch my app by sending the
matrix a selectCellWithTag:0 without a problem. (0 is off, 1 is on)
but in the action which is called by the matrix itself, althoug I can
detect if it was just set to On or Off, but if I intercept a click on
the On button, and set it to off by calling selectCellWithTag:0 the
button stays in the On position. I cannot figure out why.
Is there a better way to have the On position conditional to a certain
rule? I want to be able to turn it on when some items are selected in a
list. If none are selected, I do not want someone to turn it on.
Perhaps I can simple deactivate the matrix when nothing is selected,
that would probably solve the issue, but I'd like to understand what is
going on...
Thanks!
Renaud
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.