• 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
NSMatrix with radio buttons - problem detecting states
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMatrix with radio buttons - problem detecting states


  • Subject: NSMatrix with radio buttons - problem detecting states
  • From: Phillip Hutchings <email@hidden>
  • Date: Fri, 11 Oct 2002 22:05:12 +1300

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

OK, I have two radio buttons in a NSMatrix (as per HIG saying that a checkbox isn't suitable for this job...). I have a method in my controller class called toggleSettings. Each cell of the matrix is attached to a variable, one called broadcast, the other called listen.

The problem: If states are changed I want to update the model class to change its behaviour (from broadcasting to listening). I was attempting to do this by checking the states of the two radio buttons, as I can't find a method in NSMatrix, not that it makes any difference with this problem. When I checked the states, both radio buttons were in NSOnState.

Luckily, since it's only two radio buttons I can just check for them both being on and then toggle, since the buttons are only ever both on when the state is changed, but this isn't good as it doesn't sync to the actual state of the UI.

So, how am I supposed to do this? Or is this a bug?


Phillip Hutchings
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)

iEYEARECAAYFAj2mlE0ACgkQ1PJqI21cmKBIcACeLgekV0YC4rAenEooCugAWqVM
uQAAnjUeXCPxgGkdyRMOadRznTP+Pqil
=TSQi
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSMatrix with radio buttons - problem detecting states
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: Can I get AppKit to draw this faster ?
  • Next by Date: Re: Cocoa & C++ Protected Member Functions
  • Previous by thread: partly connected nibs?
  • Next by thread: Re: NSMatrix with radio buttons - problem detecting states
  • Index(es):
    • Date
    • Thread