home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / programm / 7834 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.7 KB  |  49 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!psinntp!kripalu!harit
  3. From: harit@kripalu.com
  4. Subject: Re: Drag and Drop to App Icon question
  5. Message-ID: <1992Dec18.170729.324@uunet!cbmvax!xmws!kripalu>
  6. Sender: harit@uunet!cbmvax!xmws!kripalu
  7. Reply-To: harit@kripalu.com
  8. Organization: Kripalu Center
  9. References: <1992Dec17.072147.15264@netcom.com>
  10. Date: Fri, 18 Dec 92 17:07:29 GMT
  11. Lines: 36
  12.  
  13. In article <1992Dec17.072147.15264@netcom.com> gordie@yamanote.dolphin.com  
  14. (Gordie Freedman) writes:
  15. > I'd like to have an app that accepts a drag and drop operation from something  
  16. > in the workspace browser onto the Icon of my running application. I  
  17. essentially  
  18. > want to get the path name of the object dropped.
  19. > More clearly, I start up my app, it just displays a menu, no windows,  
  20. although  
  21. > the App icon is displayed. I then drag a file out of the workspace browser  
  22. onto  
  23. > the App icon, and I want the app to get notified and be able to query the  
  24. > filename. Of coursse I also want to do this for directories as well. 
  25. > Can this be done, or do I need a window (or miniwindow) to drop the file  
  26. onto?  
  27. > Any pointers to coding examples or Digi Lib docs that do this?
  28. > Thanks in advance (Nextmail is fine)
  29. > -- 
  30. > Gordie Freedman gordie@yamanote.dolphin.com   ->   NextMail encouraged
  31. > (Disclaimer: Opinions expressed are my own and represent no one else.)
  32.  
  33. Under 3.0 if the user does a COMMAND drag to the application icon you will get  
  34. notified by the standard messages for opening a file as if the user double  
  35. clicked on the file and your application was the owning application.  This way  
  36. you can COMMAND drag any file to Edit.app and look at it.
  37.  
  38.  
  39. -- 
  40. Michael Allen Latta
  41. Kripalu Center
  42. harit@kripalu.com
  43. (413)448-3288
  44.