Re: NSTableView setDoubleAction/NSControl setAction
Re: NSTableView setDoubleAction/NSControl setAction
- Subject: Re: NSTableView setDoubleAction/NSControl setAction
- From: Nicholas Riley <email@hidden>
- Date: Wed, 7 Aug 2002 07:02:48 -0500
- Mail-followup-to: Gerben Wierda <email@hidden>, email@hidden
On Wed, Aug 07, 2002 at 12:21:11PM +0200, Gerben Wierda wrote:
>
In other words, as I said: at the lowest level, an Event comes *with*
>
knowledge about it being double/single click. That has nothing to do
>
with being psychic, but with the fact that these action have been
>
abstracted (we are in an OO-environment after all and not in Windows
>
3.1).
Sure it does. What you're (seemingly) asking is for the framework to
tell you, at the time the first click arrives, whether or not a second
click will arrive. It can't predict the future, so short of waiting
for the timeout, and infuriating the user who probably thinks of this
as the application's sluggishness, there's nothing the framework can
help you with.
>
I see a faint possibility of some complicated (and non-OO) behaviour
>
here, but that doesn't change that a setDoubleAction for NSTableView
>
next to an already available setAction (in NSControl) only really makes
>
sense from an OO-perspective if they are disjunct.
I'm having trouble thinking of an instance where single-clicking on a
table entry will do anything that isn't innocuous. Consider that the
equivalent would be trying to use the arrow keys to navigate the
table, which is something you usually want to allow. Perhaps
describing the actions you're trying to trigger on single- and
double-click will bring a bit more clarity to the discussion.
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.