Re: Drag and drop onto the desktop?
Re: Drag and drop onto the desktop?
- Subject: Re: Drag and drop onto the desktop?
- From: "Mark's Studio" <email@hidden>
- Date: Sun, 9 Dec 2001 13:49:22 +0100
On lxrdag, december 8, 2001, at 11:57 , Charles Srstka wrote:
>
That only works if you can create the file very quickly. The Finder
>
checks to make sure the tmp file exists as soon as you complete the
>
drop. If you can create the file instantaneously, it will work. However,
>
if it takes time to make your file, the Finder will see there's no file
>
there and give up.
>
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.
>
Even if you can make a file quickly, there is the chance that the Finder
>
will get there first anyway sometimes. So your app will only work a
>
certain percentage of the time.
>
>
I tried this technique once. It doesn't work very well.
>
>
On Friday, December 7, 2001, at 03:17 AM, Mark's Studio wrote:
>
>
> I dont know if it been answered.
>
>
>
> I got it to work by writing the the file to the tmp directory and then
>
> put the filename on the pboard.
>
>
>
> If you look in the tmp directory after you made a drag from Apple's
>
> Address Book you will see all the files in there,
>
> so i think that's how they do it.
>
>
Peter Mark
Mark's Recording Studio A/S
Faelledvej 19 b DK2200 N
Copenhagen Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden
>
> _______________________________________________
>
> cocoa-dev mailing list
>
> email@hidden
>
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.