• 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: Detecting option key down/up during drag
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting option key down/up during drag


  • Subject: Re: Detecting option key down/up during drag
  • From: Olivier Guizol <email@hidden>
  • Date: Mon, 17 Nov 2003 19:11:23 +0100

I guess you only "wired" the NSTableView drag & drop facility.

I think you may have to subclass NSTableView and overload the pre-defined NSDraggingDestination protocol
You should call the method "draggingSourceOperationMask" on the sender of NSDraggingDestination messages to check what modifier key is held down.

Hope this help.

Olivier


I've searched the mamasam archives and haven't found a definitive
answer. How can I detect the option key down/up during a drag like the
Finder? I've implemented dragging in a table view, but I want to be
able to option-drag to make a copy (vs. move) and be able to change my
mind in the middle of a drag. I can detect the option key immediately
before the drag starts, but that doesn't help during the drag.

Thanks,

Keith
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: setDoubleAction in tableView
  • Next by Date: Re: Detecting option key down/up during drag
  • Previous by thread: Re: Detecting option key down/up during drag
  • Next by thread: Re: Detecting option key down/up during drag
  • Index(es):
    • Date
    • Thread