NSTableView: option-drag with only one row?
NSTableView: option-drag with only one row?
- Subject: NSTableView: option-drag with only one row?
- From: "Ben Kennedy" <email@hidden>
- Date: Thu, 21 Jul 2005 15:05:53 -0400
- Organization: Zygoat Creative Technical Services
Hi all,
In my table view, you may rearrange rows by dragging
(NSDragOperationMove), or duplicate existing rows by option-dragging
(NSDragOperationCopy). This works as designed.
Well, almost. A user has pointed out to me that if there is only one
row in the table, it is impossible to option-drag to initiate a copy (so
as to create a second row). During the regular dragging-to-rearrange
case, this makes sense, since there's no reasonable way to re-order a
single item. However, tableView:vali
dateDrop:proposedRow:proposedDropOperation: never gets called, so there
is no opportunity to return a NSDragOperationCopy.
Am I overlooking something, or is this a design deficiency in NSTableView?
thanks,
-ben
--
Ben Kennedy, chief magician
zygoat creative technical services
613-228-3392 | 1-866-466-4628
http://www.zygoat.ca
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden