Article View: comp.sys.next.programmer
Article #232dragFile method and ImageText
From: mmelling Mellinger
Date: Sat, 25 Jul 1992 00:13
Date: Sat, 25 Jul 1992 00:13
23 lines
1626 bytes
1626 bytes
I need to be able to drag icons out of a Scrollview as well as drag icons into into them, like Edit permits in NS 3.0. Fortunately, each scrollview needs to only accept icons or allow them to be dragged out of the view, much like in the Mail.app scrollviews (applications can be dragged out of mailboxes, and attachments can only be dragged into new mail). In short, my application, needs to both take and give tiff images to the WorkSpace. Currently, I am modifying ImageText to be able to do this. I have created two documents, one is capable of either receiving an icon while the other allows it's icons images to be dragged out. However, I am not able to drag the icon out of my one window. The icon almost immediatley slides back, and the dragFile methods returns with a non-nil value. If I drag the icon fast enough, I can get the image to appear in the other document. The documentation leaves me with the impression that I should just be able to call dragFile with the icon's pathname, etc. and the rest is "magic". Unfortunately, this doesn't seem to be the case. Has anyone implemented this functionality under NS 2.0? Any help or caveats would be appreciated. -Mike Btw, NS 3.0 is not an option. In my timeframe, it is vapor.
Technical Details
Message-ID:
<1992Jul25.001310.724@Trirex.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!trirex!rootShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!trirex!root From: mmelling @Trirex.com(Michael Mellinger) Subject: dragFile method and ImageText Message-ID: <1992Jul25.001310.724@Trirex.COM> Sender: root@Trirex.COM (Operator) Organization: Trirex Systems Inc. Date: Sat, 25 Jul 1992 00:13:10 GMT Lines: 23