• 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: NSMatrix problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMatrix problem


  • Subject: Re: NSMatrix problem
  • From: Mark T <email@hidden>
  • Date: Tue, 3 Jul 2001 12:30:07 -0400

Is there a reason why you need to create the matrix of checkboxes programmatically? It can be done in IB-- simply drag out a checkbox, hold down the option(alt) key, and drag out as many checkboxes you need. The end result is are buttoncells configured as a checkboxes that live within an NSMatrix.

At the very least, you could do the above and figure out how they are configured to figure out what is wrong with your code. I suspect it is a configuration problem on the NSMatrix; in particular, when you click on the checkbox, it unchecks itself but the matrix promptly rechecks it as it "selects" the cell containing the checkbox.

I did create the NSMatrix in IB, that's what I've been doing all along. The creation of the matrix is fine and the configuration appears to be as well(radio mode, allows empty selection). But the matrix refuses to allow both checkboxes to be unchecked after either has been clicked on. I've tried [theMatrix deselectAllCells] with no effect. I've also tried [[theMatrix cellAtRow:0 column:0] setState:NSOffState] and [[theMatrix cellAtRow:0 column:0] setIntValue:0] for each cell of the matrix. Same lack of result. Any ideas?

Mark T.


  • Follow-Ups:
    • Re: NSMatrix problem
      • From: Bill Bumgarner <email@hidden>
References: 
 >Re: NSMatrix problem (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: file copying revisited
  • Next by Date: Re: object ownership question
  • Previous by thread: Re: NSMatrix problem
  • Next by thread: Re: NSMatrix problem
  • Index(es):
    • Date
    • Thread