• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTableView and dragging cursor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTableView and dragging cursor
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: NSOpenPanel problem
  • Next by Date: Re: how to count NSThreads and NSTasks ?
  • Previous by thread: Re: NSTableView and dragging cursor
  • Next by thread: Re: NSTableView and dragging cursor
  • Index(es):
    • Date
    • Thread