Skip navigation.
 
mlRe: NSButton checkbox reports reverse state
FROM : Jens Alfke
DATE : Mon Jun 16 18:02:35 2008

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

Related mailsAuthorDate
mlNSButton checkbox reports reverse state mirage_3d Jun 16, 07:50
mlRe: NSButton checkbox reports reverse state Jens Alfke Jun 16, 18:02