• 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: observeValueForKeyPath and how to do it right
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: observeValueForKeyPath and how to do it right


  • Subject: Re: observeValueForKeyPath and how to do it right
  • From: Chris Idou <email@hidden>
  • Date: Mon, 22 Dec 2008 20:19:56 -0800 (PST)

--- On Mon, 22/12/08, Ken Thomases <email@hidden> wrote:

> From: Ken Thomases <email@hidden>
> Subject: Re: observeValueForKeyPath and how to do it right
> To: "Chris Idou" <email@hidden>
> Cc: email@hidden
> Received: Monday, 22 December, 2008, 6:36 PM
> On Dec 22, 2008, at 8:19 PM, Chris
> Idou wrote:
>
> > I've got a NSTableView controlled by a
> NSArrayController using content set binding. One of the
> columns is a checkbox, and I need to take some action when
> the user changes the value, but I don't want to put the code
> in the actual object, because it would be beyond the
> concerns of this object to deal with all that.
> >
> > So what is the right way to go about this?
>
> Sometimes the old ways are best.
>
> Use target-action.  Control drag from the cell to your
> controller and hook it up to an action method.

How do I then find out which object was clicked?





      Stay connected to the people that matter most with a smarter inbox. Take a look http://au.docs.yahoo.com/mail/smarterinbox
_______________________________________________

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: observeValueForKeyPath and how to do it right
      • From: Graham Cox <email@hidden>
    • Re: observeValueForKeyPath and how to do it right
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Configuring NSNumberFormatter non-programmatically
  • Next by Date: Re: Xcode Question
  • Previous by thread: Re: observeValueForKeyPath and how to do it right
  • Next by thread: Re: observeValueForKeyPath and how to do it right
  • Index(es):
    • Date
    • Thread