|
From: | Fred Kiefer |
Subject: | Re: state of setAction for NSTableView |
Date: | Thu, 10 Jun 2004 01:14:12 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114 |
Gregory John Casamento wrote:
--- Fred Kiefer <fredkiefer@gmx.de> wrote:There is some code in [NSTableView mouseDown:] that could cause the action to be send, but all of the code here is rather strange and we really need somebody to clean it up. You are welcome to start with this.The setAction: method sets the action to be executed on the specified target, specified in setTarget:, when a user clicks (single click) on the table. It is overridden in tableview, since tableview is a control which doesn't have a "cell". The superclass, NSControl, calls [cell setAction:] in the setAction: method. Don't remove this code.
I was not talking about the special implementation of [setAction:], this is of course need and was never doubted. It is [mouseDown:] which will need the cleanup. If you think otherwise, you may have to write me a long explaination mail on what this method is currently doing and why it has to be done in this specific way.
Cheers Fred
[Prev in Thread] | Current Thread | [Next in Thread] |