Re: Detecting option key down/up during drag
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.