NSTableView and Drag and Drop
NSTableView and Drag and Drop
- Subject: NSTableView and Drag and Drop
- From: Buzz Andersen <email@hidden>
- Date: Fri, 02 Aug 2002 08:15:43 -0600
Hi,
I am currently trying to build an application in which users can drag a row
in a NSTableView to the Finder, and have a file represented by that row
copied to the drag destination. This functionality is working fine, except
for one thing: I must always double click the row in order to have it drag
successfully. If I just drag horizontally, nothing happens. If I drag
vertically, the NSTableView simply selects other rows as I drag.
I have "Allows multiple selection" unchecked in Interface Builder. I have
also tried putting the following in my awakeFromNib:
[tableView setVerticalMotionCanBeginDrag: YES];
The only thing that seems to help is if I override mouseClicked, but then
the highlighting doesn't show up on the selected row.
Any suggestions would be greatly appreciated!
Thanks...
--
Buzz Andersen
email: email@hidden
web:
http://www.scifihifi.com
_______________________________________________
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.