jonathan wrote: > > le 2001/09/30 3:14, Craig Hoyt à aztech4mac@... a écrit : > > > Does anybody have an example on how to do this? I > > couldn't find any information on the drag manager but a note in IM VI in > > the finder section says this is possible. Any suggestions? > > craig, > your post is unclear on your need. this is probably because you are a bit > unclear on the technologies. > > if you need to to drag a folder to your application's icon and have that > folded treated by your application, then this is not the drag manager it is > appleevents from the finder and correct settings in your application's > bundle bits as you hint at in your post. > > if you need to drag a folder to a window in your application and then treat > that folder, this is correctly the dragmanager. > > for the first case, code has been posted in this list quite a few times; my > advise would be to search the archives. > > for the second case, alain recently debugged this for matt's mp3 jukebox i > believe. as this is open source, i'd advise you to download that source and > seek out the revelant parts. i also believe that alain and waverly have a > demo of this precise function hanging around somewhere. > I think Graig wants to allow the user to drag a file or a folder from the Finder onto a window in his app. With Wave's help I managed to hack and debug the D&D PG filter in order to include that feature in Matt's Jukebox prog (actually my version accepts only a dropped folder or its alias, but it should be not that hard to let the app accept files too). The project is at: <http://euro.futurebasic.com/download/FutureJukebox.sea.hqx>. Have a look at the D&D.Incl file, it is more easily understandable than the original PG filter which needs to take into account many more things. BTW, this is not the open source FutureJukebox, Matt has recently released a new version that you can find at: <http://www.foxchange.com/~matt/jukebox/index.html> Or wait for Jonathan's posts, I believe he has volunteered to write for this list a few things about the Drag & Drop Manager... -- Cheers Alain ----------------------------------------------------- FB^3 in Europe: http://euro.futurebasic.com/ FB II Pouch: http://www.pixmix.com/FB/outils.html -----------------------------------------------------