Re: NSTableView and dragging cursor
Re: NSTableView and dragging cursor
- Subject: Re: NSTableView and dragging cursor
- From: Ken Victor <email@hidden>
- Date: Sat, 12 Nov 2005 12:54:22 -0800
first off, i made a "copy and paste typo" in my previous email, i was
NOT doing:
BOOL isCopy = (([info draggingSourceOperationMask] ==
NSDragOperationCopy) != 0);
what i was doing (as many have pointed out i should have been doing) was:
BOOL isCopy = (([info draggingSourceOperationMask] ==
NSDragOperationCopy) != 0);
and in fact, this wasn't working. upon further investigation, i
believe i now know what is/was happening (as this should have
worked)! in my tableview's draggingSourceOperationMaskForLocal, i
return:
NSDragOperationCopy | NSDragOperationDelete | NSDragOperationMove
in the tableview's data source
tableView:validateDrop:proposedRow:proposedDropOperation:
if the option key is not pressed, then the passed in draggingInfo's
draggingSourceOperationMask is set to what it was set to by the
table, ie,
NSDragOperationCopy | NSDragOperationDelete | NSDragOperationMove
however, if the option key is pressed, then in
tableView:validateDrop:proposedRow:proposedDropOperation: it is
NSDragOperationCopy
thus, treating it as a bitfield and masking it was not working, as it
always appeared to be a copy!
i'm not sure if this is an implementation bug or a document bug...
but i'm pretty sure this is a bug somewhere! :-)
ken
_______________________________________________
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