Drag-and-drop to Finder
Drag-and-drop to Finder
- Subject: Drag-and-drop to Finder
- From: Tim Hewett <email@hidden>
- Date: Mon, 21 Apr 2003 13:57:51 +0100
I am trying to write Objective-C code to support drag-and-drop from the
NSTableView in my application to a Finder window. What I need to have
happen is for my application to receive the path of the Finder folder
that
was dropped onto, because it needs to be able to expand a tar archive
into that folder. So far all I have found is a mechanism for a specific
filename to be given to the Finder which the Finder then copies/moves
etc. itself. However the Finder can't expand an archive, only my
application
has the information on how to do that, but my application needs to know
which directory in which to perform the expansion of the archive once
the drag-and-drop has happened.
Can anyone help/advise on whether what I want to do is possible, and
if so how? Much searching of the archives and other developer sites
has yielded no info! It seems like the interface is designed such that
the
application which is the destination of a drag-and-drop always does
the work, but in my case it has no idea how to and it must be the source
which does it instead.
So far I have successfully had Finder copy a specific file through drag-
and drop from my app, so the basic mechanism is working, and drag-and
drop from Finder to my NSTableView works too, it's just this final
cliff face
that is the problem...
Any help would be very much appreciated.
Regards,
Tim.
_______________________________________________
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.