Re: NSButton checkbox reports reverse state
Re: NSButton checkbox reports reverse state
- Subject: Re: NSButton checkbox reports reverse state
- From: Jens Alfke <email@hidden>
- Date: Mon, 16 Jun 2008 09:02:35 -0700
On 15 Jun '08, at 10:50 PM, mirage_3d wrote:
when i check the buttons' states in my action
however, the buttons report the inverse state to what they really
should. i
used NSOffButton and NSOnButton constants to set and check, and the
values
are correct. but when i check the buttons' states later on they just
report
the opposite.
By the time your action method is called, the checkbox has already
toggled itself, so what you see there is the new value, not the old
one. Is that what you're seeing?
Also, what's the mode of the matrix set to? The default, I believe, is
to provide radio-button-like behavior, where clicking one cell turns
all the other ones off.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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