drag out a file
"Joe Chan" <[email protected]> Sun, 8 Sep 2002 21:58:08 +0800
| Newsgroups | gmane.comp.mozilla.devel.xpfe,gmane.comp.mozilla.devel.xpcom |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Hi,
I have tried the data flavors 'application/x-moz-file' to drag a file
from my XUL application to desktop and windows explorer. In windows XP, I
get 'source file not found error', in windows2000, the system just does not
allow me to do so.
In the documentation at
http://www.mozilla.org/xpfe/xptoolkit/DataFlavors.html, it seems to expect I
pass a nsIFile (or nsILocalFile) object in the 2nd parameter in
addDataFlavor(). In fact what should I pass it?
Thanks!
Joe Chan