• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSButton checkbox reports reverse state
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSButton checkbox reports reverse state (From: mirage_3d <email@hidden>)

  • Prev by Date: Re: awakeFromNib
  • Next by Date: Re: awakeFromNib
  • Previous by thread: NSButton checkbox reports reverse state
  • Next by thread: Re: Interface Builder popularity w/ Cocoa Developers
  • Index(es):
    • Date
    • Thread