• 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
Drag and drop file problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Drag and drop file problems
      • From: 陳銘崧 a.k.a. James Chen <email@hidden>
  • Prev by Date: Re: Custom palette questions
  • Next by Date: Re: HTML Parsing in Objective-C?
  • Previous by thread: Re: HTML Parsing in Objective-C?
  • Next by thread: Re: Drag and drop file problems
  • Index(es):
    • Date
    • Thread