Re: Deselecting an NSButtonCell?
Re: Deselecting an NSButtonCell?
- Subject: Re: Deselecting an NSButtonCell?
- From: Nick Forge <email@hidden>
- Date: Tue, 3 Apr 2007 12:51:57 +1000
Ok, it works for me too - the problem is, every NSButtonCell in my
NSMatrix is currently disabled. I am using the radio buttons to
display a setting that cannot be modified (but at a later time the
NSButtonCells may be enabled). If I enable the cells, everything
works as though I clicked on it. If I disable the cells, they don't
deselect properly. While they are disabled, I don't seem to be able
to deselect programmatically, even if I use deselectAllCells or
deselectSelectedCell.
I can easily enable the cells, change the setting, then re-disable
them, but that's a bit of an ugly workaround, and may result in the
user being able to see the radio buttons flicker if their computer is
slow enough (or busy enough). Is there another way to get the cells
to deselect while they are disabled?
Thanks,
Nick Forge
On 02/04/2007, at 6:39 PM, Andreas Mayer wrote:
Am 02.04.2007 um 10:10 Uhr schrieb Nick Forge:
This line of code will select a button, but won't deselect the old
one.
[hibernateMode selectCellAtRow:0 column:0];
Works for me.
Here's a demo project:
http://www.harmless.de/download/ButtonMatrixTest.zip
Andreas
_______________________________________________
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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