• 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, changing selection of Radio Button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMatrix, changing selection of Radio Button


  • Subject: NSMatrix, changing selection of Radio Button
  • From: Renaud Boisjoly <email@hidden>
  • Date: Mon, 18 Mar 2002 22:31:16 -0500

Hi all,

I'm certainly not a great programmer, but I manage to do simple things... in any case, I cannot figure out this one.

I have an NSMatrix which is basically a set of two readio buttons as dragged from IB to my window.

I can set which button is selected when I launch my app by sending the matrix a selectCellWithTag:0 without a problem. (0 is off, 1 is on)

but in the action which is called by the matrix itself, althoug I can detect if it was just set to On or Off, but if I intercept a click on the On button, and set it to off by calling selectCellWithTag:0 the button stays in the On position. I cannot figure out why.

Is there a better way to have the On position conditional to a certain rule? I want to be able to turn it on when some items are selected in a list. If none are selected, I do not want someone to turn it on.

Perhaps I can simple deactivate the matrix when nothing is selected, that would probably solve the issue, but I'd like to understand what is going on...

Thanks!

Renaud
_______________________________________________
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.

  • Prev by Date: Re: Newbie w/ stupid question...
  • Next by Date: NSScanner Oddities
  • Previous by thread: Re: Newbie w/ stupid question...
  • Next by thread: Re: NSMatrix, changing selection of Radio Button
  • Index(es):
    • Date
    • Thread