• 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: Select checkbox in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Select checkbox in NSTableView


  • Subject: Re: Select checkbox in NSTableView
  • From: Jim Correia <email@hidden>
  • Date: Fri, 11 Nov 2005 16:56:39 -0500

On Nov 11, 2005, at 4:41 PM, Richard Salvatierra wrote:

I have an NSTableView of 4 columns. The first of which is a checkbox.

[...]

The NSLog print out of each aCell is the same object. Is this the prototype of the tableColumn. How do I get each columns checkbox to set the state?

Actually, what you have is a data model with 4 attributes, one of which is a boolean and displayed in the first column of an NSTableView as a checkbox :-)


What you should be doing is modifying the model - setting that boolean attribute to TRUE, then getting the table view to update. You get the table view to update with reload data if you are using a data source, or by KVO if you are using bindings. (Depending on how the model is implemented, KVO may be automatic.)

Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Select checkbox in NSTableView (From: Richard Salvatierra <email@hidden>)

  • Prev by Date: Re: Select checkbox in NSTableView
  • Next by Date: Overriding HTML translation in NSAttributedString
  • Previous by thread: Re: Select checkbox in NSTableView
  • Next by thread: Overriding HTML translation in NSAttributedString
  • Index(es):
    • Date
    • Thread