: Listening for changes in a table
To: cocoa-dev@lists.apple.com
Date: Thursday, September 18, 2008, 8:27 PM
--- On Thu, 9/18/08, Ken Thomases
[EMAIL PROTECTED] wrote:
Two possibilities:
* If you used a custom class rather than a dictionary,
then
there
would be a setter of your own
On Wed, Sep 17, 2008 at 8:46 PM, Chris Idou [EMAIL PROTECTED] wrote:
I've got a NSTableView controlled by an NSArrayController, which uses an
array of NSMutableDictionaries as its controlled objects. One of the columns
is a checkbox. These dictionaries are ultimately stored in the user's
On Sep 18, 2008, at 7:43 PM, Chris Idou wrote:
Well I do have the checkbox bound to the controller. It is bound to
one of the attributes in the array of mutable dictionaries contained
within my NSArrayController.
But I don't see how this lets me get control to do something when
someone
Yes I can put an action on the ButtonCell, but this doesn't tell me
which record in the array the clicked cell relates to.
Why does everybody forget about / ignore NSTableDataSource?
--- On Thu, 9/18/08, Ken Thomases [EMAIL PROTECTED] wrote:
Two possibilities:
* If you used a custom class rather than a dictionary, then
there
would be a setter of your own design called when the
property is set
due to a change in the checkbox.
Yes I could do that, but given that
I've got a NSTableView controlled by an NSArrayController, which uses an array
of NSMutableDictionaries as its controlled objects. One of the columns is a
checkbox. These dictionaries are ultimately stored in the user's preferences.
How would I get immediate notification if a user changed one