Select and drag in NSTableView
Select and drag in NSTableView
- Subject: Select and drag in NSTableView
- From: Drew McCormack <email@hidden>
- Date: Sat, 6 Apr 2002 11:25:10 +0200
I have implemented drag-and-drop reordering of rows in an NSTableView.
This works fine, except that the selected row indexes remain unchanged,
which seems a bit strange for the user. I would prefer that as soon as a
mouse down occurred, the row would be selected, and remain selected,
even after the drag and drop had occurred.
The problem I have is that the action seems to be sent on the mouse-up,
not the mouse down, so I can't select the row in the action method. Does
this mean I need to make a subclass of NSTableView, and override
mouse-down, or is there a simpler way?
Drew
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ...
Dr. Drew McCormack
Trade Strategist (www.trade-strategist.com)
Trading simulation software for Mac OS X
_______________________________________________
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.