• 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: Listening for changes in a table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Listening for changes in a table
      • From: Chris Idou <email@hidden>
References: 
 >Listening for changes in a table (From: Chris Idou <email@hidden>)

  • Prev by Date: [Moderator] Re: iPod Touch apps
  • Next by Date: Re: Utility/Floating window with titlebar on left side
  • Previous by thread: Listening for changes in a table
  • Next by thread: Re: Listening for changes in a table
  • Index(es):
    • Date
    • Thread