FROM : Christoffer Lerno
DATE : Wed Nov 17 23:57:25 2004
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
DATE : Wed Nov 17 23:57:25 2004
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
| Related mails | Author | Date |
|---|---|---|
| Christoffer Lerno | Nov 17, 23:57 | |
| ??? a.k.a. James C… | Nov 22, 02:54 |






Cocoa mail archive

