Re: NSTableView and dragging cursor
Re: NSTableView and dragging cursor
- Subject: Re: NSTableView and dragging cursor
- From: Ken Victor <email@hidden>
- Date: Fri, 11 Nov 2005 17:13:14 -0800
At 8:01 PM -0500 11/11/05, Jim Correia wrote:
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.)
ok. this makes sense.
Look at the draggingSourceOperationMask in the dragging info. If it
contains NSDragOperationCopy and all other conditions are
appropriate for making a copy, return NSDragOperationCopy.
but this doesn't! my source allows copy and move and i was/am relying
on the presence or absence of the option key as to whether or not it
should be a copy or a move. thus, i believe examining the
draggingSourceOperationMask is not sufficient, but it is necessary to
determine the state of the option key as well as the state of the
draggingSourceOperationMask.
or am i still confused? :-)
ken
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