home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5232 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.6 KB  |  34 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!trirex!root
  3. From: mmelling @Trirex.com(Michael Mellinger)
  4. Subject: dragFile method and ImageText
  5. Message-ID: <1992Jul25.001310.724@Trirex.COM>
  6. Sender: root@Trirex.COM (Operator)
  7. Organization: Trirex Systems Inc.
  8. Date: Sat, 25 Jul 1992 00:13:10 GMT
  9. Lines: 23
  10.  
  11. I need to be able to drag icons out of a Scrollview as well as drag icons  
  12. into into them, like Edit permits in NS 3.0.  Fortunately, each scrollview  
  13. needs to only accept icons or allow them to be dragged out of the view,  
  14. much like in the Mail.app scrollviews (applications can be dragged out of  
  15. mailboxes, and attachments can only be dragged into new mail). In short,  
  16. my application, needs to both take and give tiff images to the WorkSpace.
  17.  
  18. Currently, I am modifying ImageText to be able to do this.  I have created  
  19. two documents, one is capable of either receiving an icon while the other  
  20. allows it's icons images to be dragged out.  However, I am not able to  
  21. drag the icon out of my one window.  The icon almost immediatley slides  
  22. back, and the dragFile methods returns with a non-nil value.  If I drag  
  23. the icon fast enough, I can get the image to appear in the other document.   
  24. The documentation leaves me with the impression that I should just be able  
  25. to call dragFile with the icon's pathname, etc. and the rest is "magic".   
  26. Unfortunately, this doesn't seem to be the case.
  27.  
  28. Has anyone implemented this functionality under NS 2.0?  Any help or  
  29. caveats would be appreciated.
  30.  
  31. -Mike
  32.  
  33. Btw, NS 3.0 is not an option.  In my timeframe, it is vapor.
  34.