Deselecting an NSButtonCell?
Deselecting an NSButtonCell?
- Subject: Deselecting an NSButtonCell?
- From: Nick Forge <email@hidden>
- Date: Mon, 2 Apr 2007 18:10:55 +1000
I have an NSMatrix with 3 NSButtonCells in it, as a three way radio
button selector. If I click on one of the radio buttons, whatever was
previously selected is deselected. If, however, I select a button
programmatically, the old one doesn't get deselected. If I try and
use deselectAllCells, nothing happens.
This line of code will select a button, but won't deselect the old one.
[hibernateMode selectCellAtRow:0 column:0];
This line of code doesn't appear to do anything at all.
[hibernateMode deselectAllCells];
(hibernateMode is my NSMatrix outlet.)
How can I programatically deselect the old button? Is there a better
method to use then selectCellAtRow:column:?
Thanks in advance,
Nick Forge
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden