🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #2149

Re: Drag and Drop to App Icon question

#2149
From: harit
Date: Fri, 18 Dec 1992 17:07
36 lines
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
Technical Details
Message-ID: <1992Dec18.170729.324@uunet!cbmvax!xmws!kripalu>
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!kripalu!harit
References: <1992Dec17.072147.15264@netcom.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!kripalu!harit
From: harit@kripalu.com
Subject: Re: Drag and Drop to App Icon question
Message-ID: <1992Dec18.170729.324@uunet!cbmvax!xmws!kripalu>
Sender: harit@uunet!cbmvax!xmws!kripalu
Reply-To: harit@kripalu.com
Organization: Kripalu Center
References: <1992Dec17.072147.15264@netcom.com>
Date: Fri, 18 Dec 92 17:07:29 GMT
Lines: 36