Re: NSTableView and dragging cursor
Re: NSTableView and dragging cursor
- Subject: Re: NSTableView and dragging cursor
- From: Jim Correia <email@hidden>
- Date: Fri, 11 Nov 2005 20:01:19 -0500
On Nov 11, 2005, at 7:13 PM, Ken Victor wrote:
for the archives (i stumbled across this right after my posting):
in the table source's
tableView:validateDrop:proposedRow:proposedDropOperation: method,
you can check the option key via:
(([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask) != 0)
however, i'm still a little curious as to why this behavior doesn't
happen automatically...
It doesn't happen automatically because the drag source may not
permit copies, or the destination may not know how to make a copy (or
it may not make sense in the given context.)
Look at the draggingSourceOperationMask in the dragging info. If it
contains NSDragOperationCopy and all other conditions are appropriate
for making a copy, return NSDragOperationCopy.
Jim
_______________________________________________
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