Re: Listening for changes in a table
Re: Listening for changes in a table
- Subject: Re: Listening for changes in a table
- From: "Kyle Sluder" <email@hidden>
- Date: Thu, 18 Sep 2008 02:54:52 -0400
On Wed, Sep 17, 2008 at 8:46 PM, Chris Idou <email@hidden> 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 preferences. How would I get immediate notification if a user changed one of the checkboxes? I would need to know which record (dictionary) the checkbox referred to.
You would probably want to bind the checkbox to a property on the
model object, or use the standard target/action mechanism on the
NSButtonCell belonging to the table column.
In other words, your question doesn't really make sense. You seem to
be going at it backwards; you shouldn't be concerned at all about the
table view, this is either something for the model or the controller
to be taking care of.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden