Thread View: comp.sys.next.programmer
2 messages
2 total messages
Started by Gordie Freedman
Thu, 17 Dec 1992 07:21
Drag and Drop to App Icon question
Author: Gordie Freedman
Date: Thu, 17 Dec 1992 07:21
Date: Thu, 17 Dec 1992 07:21
17 lines
1342 bytes
1342 bytes
I'd like to have an app that accepts a drag and drop operation from something in the workspace browser onto the Icon of my running application. I essentially want to get the path name of the object dropped. More clearly, I start up my app, it just displays a menu, no windows, although the App icon is displayed. I then drag a file out of the workspace browser onto the App icon, and I want the app to get notified and be able to query the filename. Of coursse I also want to do this for directories as well. Can this be done, or do I need a window (or miniwindow) to drop the file onto? Any pointers to coding examples or Digi Lib docs that do this? Thanks in advance (Nextmail is fine) -- Gordie Freedman gordie@yamanote.dolphin.com -> NextMail encouraged (Disclaimer: Opinions expressed are my own and represent no one else.)
Re: Drag and Drop to App Icon question
Author: harit
Date: Fri, 18 Dec 1992 17:07
Date: Fri, 18 Dec 1992 17:07
36 lines
1819 bytes
1819 bytes
In article <1992Dec17.072147.15264@netcom.com> gordie@yamanote.dolphin.com (Gordie Freedman) writes: > I'd like to have an app that accepts a drag and drop operation from something > in the workspace browser onto the Icon of my running application. I essentially > want to get the path name of the object dropped. > > More clearly, I start up my app, it just displays a menu, no windows, although > the App icon is displayed. I then drag a file out of the workspace browser onto > the App icon, and I want the app to get notified and be able to query the > filename. Of coursse I also want to do this for directories as well. > > Can this be done, or do I need a window (or miniwindow) to drop the file onto? > Any pointers to coding examples or Digi Lib docs that do this? > > Thanks in advance (Nextmail is fine) > > -- > Gordie Freedman gordie@yamanote.dolphin.com -> NextMail encouraged > (Disclaimer: Opinions expressed are my own and represent no one else.) > Under 3.0 if the user does a COMMAND drag to the application icon you will get notified by the standard messages for opening a file as if the user double clicked on the file and your application was the owning application. This way you can COMMAND drag any file to Edit.app and look at it. -- Michael Allen Latta Kripalu Center harit@kripalu.com (413)448-3288
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads