Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!purdue!mentor.cc.purdue.edu!nova.cc.purdue.edu!gerrit From: gerrit@nova.cc.purdue.edu (Gerrit) Newsgroups: comp.sys.next Subject: Re: Big pain (or All About the Pasteboard Class) Message-ID: <3459@mentor.cc.purdue.edu> Date: 25 Jul 89 04:45:20 GMT References: <13066@netnews.upenn.edu> <1508@garcon.cso.uiuc.edu> <2098@hub.UUCP> <1515@garcon.cso.uiuc.edu> Sender: news@mentor.cc.purdue.edu Reply-To: gerrit@nova.cc.purdue.edu (Gerrit) Organization: Purdue University Lines: 33 In article <1515@garcon.cso.uiuc.edu> dorner@pequod.cso.uiuc.edu (Steve Dorner) writes: >In article <2098@hub.UUCP> dz@cornu.ucsb.edu (Daniel James Zerkle) writes: >>>cut - like cat, only it would write into the scrap, not stdout >>>... >>Cut: prgname > /tmp/scrap (replace scrap) > >The obvious problem with this is that /tmp/scrap means NOTHING to >Edit, WriteNow, the Digital Library, or anything else that uses >Cut, Copy, and Paste from the AppKit. > >I need to be able to paste into something I >have just copied from , and vice-versa. I just exerted my eyeballs for an evening and have created a solution to this problem, using the available goodies on the NeXT. What you have described seems to be almost exactly what the Pasteboard class was designed for. The only flaw until now was that there wasn't a tool to provide generic access to the Pasteboard. If you have the Tech Docs, Chapter 9, pages 4-7 cover the Pasteboard. Using the documentation I slapped together a little 3K program (*and* a man page, too!) which allows you to see what types of things are on the pasteboard (there are only about 4 "standard" ones) and to fetch any one of them (iterate if you want more than one), or to put something on the pasteboard. It can be picked up from the archive on cc.purdue.edu via anonymous ftp. It is called "pub/next/source/pb.tar.Z" - retrieve in binary mode. Gerrit Huizenga NeXT Workstation Support Purdue University Computing Center gerrit@cc.purdue.edu