Re: Drag-And-Drop magic of copy vs. move (green "plus" sign magic)(in the context of NSOutlineView)
Re: Drag-And-Drop magic of copy vs. move (green "plus" sign magic)(in the context of NSOutlineView)
- Subject: Re: Drag-And-Drop magic of copy vs. move (green "plus" sign magic)(in the context of NSOutlineView)
- From: Andrei Tchijov <email@hidden>
- Date: Tue, 6 Dec 2005 22:49:39 -0500
Hurray. It does. I was returning NSDragOperationEvery and was
hoping that it will cover all bases. Now how I can implement
behavior similar to Finder. Do move (no green plus) by default and
copy (green plus) when user holds "option" key? Should I do
[[ NSApplication sharedApplication ] currentEvent ] and then check
for the "option" key?
On Dec 6, 2005, at 10:40 PM, Nick Zitzmann wrote:
On Dec 6, 2005, at 8:27 PM, Andrei Tchijov wrote:
When doing drag-and-drop inside NSOutlineView, who is responsible
for showing "green plus sign" over dragged image and do I need to
do anything special to make it happen? It looks like it is "drop
destination" responsibility. Is
- (unsigned int)outlineView:(NSOutlineView*)olv validateDrop:(id
<NSDraggingInfo>)info proposedItem:(id)item proposedChildIndex:
(int)childIndex
right place to deal with it?
Correct. If the method returns NSDragOperationCopy, then the green
plus will show up.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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