Double click in NSTableView
Double click in NSTableView
- Subject: Double click in NSTableView
- From: Eric Wang <email@hidden>
- Date: Thu, 12 Dec 2002 02:16:33 -0500
I have a table view that needs to send an action on a single-click and a
different action on a double-click. Currently, I'm using the table view's
-setAction: and -setDoubleAction: methods in order to implement this, but
this has the unwanted side effect of sending both actions when the user
double-clicks.
Essentially, I'm looking for behavior similar to that of ProjectBuilder's
Groups & Files table view. If you single-click on a file, the file contents
are displayed in the current window (The single-click action). However, if
you double-click on a file, the file contents are displayed in a new window
(The double-click action) without affecting the contents of the current
window (i.e. The single-click action was not sent).
Any ideas on how I might go about implementing this?
Eric Wang
_______________________________________________
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.