Drag and drop file problems
Drag and drop file problems
- Subject: Drag and drop file problems
- From: Christoffer Lerno <email@hidden>
- Date: Wed, 17 Nov 2004 23:57:25 +0100
I'm trying to move files by drag and drop from my application to the
Finder.
In my application I have a representation of files in a certain folder.
I want to be able to drop those into the Finder using drag and drop.
In the normal case this works fine. I use
draggedImage:endedAt:operation to remove the files just dragged into
the finder folder.
Problem occurs when I want to move a file which already exists in the
target folder in the Finder. (For example, let us say I want to drop
"untitled.txt" on the desktop which already contains an "untitled.txt")
The Finder then launches a dialog asking whether to replace or to stop
the operation, however this is done _after_ the finder has given my app
a draggedImage:endedAt:operation call. So my application believes the
file is now moved and removes it from display. However, pressing "stop"
prevents the file from being moved, so the file is actually still
there. :-/
Is there some way to get around this?
/Christoffer
_______________________________________________
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