Re: observeValueForKeyPath and how to do it right

2008-12-23 Thread Graham Cox
On 23 Dec 2008, at 3:19 pm, Chris Idou wrote: 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? any action method is declared thusly: - (IBAction) someAction:(id) sender; the answer to yo

Re: observeValueForKeyPath and how to do it right

2008-12-22 Thread Ken Thomases
On Dec 22, 2008, at 10:19 PM, Chris Idou wrote: --- On Mon, 22/12/08, Ken Thomases wrote: 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 wh

Re: observeValueForKeyPath and how to do it right

2008-12-22 Thread Chris Idou
--- On Mon, 22/12/08, Ken Thomases wrote: > From: Ken Thomases > Subject: Re: observeValueForKeyPath and how to do it right > To: "Chris Idou" > Cc: cocoa-dev@lists.apple.com > Received: Monday, 22 December, 2008, 6:36 PM > On Dec 22, 2008, at 8:19 PM, Chris >

Re: observeValueForKeyPath and how to do it right

2008-12-22 Thread Ken Thomases
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

observeValueForKeyPath and how to do it right

2008-12-22 Thread Chris Idou
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 d