Re: Drag and drop onto the desktop?
Re: Drag and drop onto the desktop?
- Subject: Re: Drag and drop onto the desktop?
- From: Charles Srstka <email@hidden>
- Date: Sun, 9 Dec 2001 11:26:21 -0600
On Sunday, December 9, 2001, at 06:49 AM, Mark's Studio wrote:
Create the file before you put the filename on the pasteboard,
that will work, but you will have the file in the tmp dir even if the
user cancel the drop.
I've tried that one too. Guess what? The pasteboard manager gives you a
certain amount of time to write something to the pasteboard after you
drop a file. I think it's eight seconds or something like that. If it
takes longer than that to create your file, it doesn't get moved. Plus
the Finder is completely locked up during this time for some bizarre
reason, and you can't use it until the whole thing is done.
Plus, in 10.1, there's a new "feature" where the provide
Data:forType:
method gets called immediately after the user hovers an icon over a
Finder window. The user doesn't even need to complete the drop anymore!
My program can sometimes create files that are quite large, and I would
like a way to not start writing them if the user might cancel the drop!