From: David Z. <kr...@kr...> - 2007-02-28 15:05:48
|
Le 28 f=E9vr. 07 =E0 15:39, Kevan Hashemi a =E9crit : > When I try: > > proc ::tk::mac::OpenDocument {} {puts hello} > > and then drag and drop a document onto the Wish icon, I don't get a =20= > call > to my procedure. I'm using 8.4.10. ::tk::mac::OpenDocument gets document's filename as argument so you =20 must write: proc ::tk::mac::OpenDocument {args} {puts hello} You also have to register filetype you're droping in your application =20= Info.plist (in CFBundleDocumentTypes Array) to activate DnD. --=20 David Zolli kr...@kr... http://www.kroc.tk |