Actually I'm really happy it does both; I just want to count on it doing both. In my case it is really important that the single click do something before the 2nd click. I want users to be able to single click without triggering the subsequent action, the double click takes the single click and applies that action to a selection in a textview.
So it works fine. I just want to make sure that I'm not counting on a bug or some other defect (in my very meager programming skills or apple's api). On Jun 6, 2010, at 6:44 PM, Matt Neuburg wrote: > On Sun, 6 Jun 2010 18:12:07 -0700, Matthew Weinstein <mwein...@kent.edu> > said: > >> I set both my tableView's actions and doubleActions programmatically in my > document's windowdidloadnib... I find that if I double click It calls both! > > You're doing both. :) The only way to tell the difference is to delay after > the first click to see whether there's a second (just like the way you tell > the difference between single and double-tap on iPhone). > > I guess the question is why you want to do this in the first place. I've > written lots of applications where double-clicking in a table did something, > and in *none* of them did I also need to implement something for > single-clicking. I get an event (thru the delegate) when the selection > changes and *that* is usually what I'm interested in. (Actually, in this > modern age, it's usually enough to let bindings handle the selection > change.) Do you really want something utterly special and unique to happen > when the user single-clicks on a row that is already selected? That would be > a very strange interface; the user is likely to be very surprised. If you > want to make that sort of thing clear, I'd suggest you put a button in the > row and catch the click from *that*. m. > > -- > matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> > A fool + a tool + an autorelease pool = cool! > AppleScript: the Definitive Guide - Second Edition! > http://www.tidbits.com/matt/default.html#applescriptthings > > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com