Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!uflorida!gatech!bloom-beacon!eru!hagbard!sunic!liuida!micja From: micja@IDA.LiU.SE (Michael Jansson) Newsgroups: comp.sys.amiga Subject: Re: Are applications using the Clipboard? Keywords: IFF, CAT, FTXT, ILBM, Clipboard, Applications. Message-ID: <1990Nov21.113623.20837@ida.liu.se> Date: 21 Nov 90 11:36:23 GMT References: <2250@lpami.wimsey.bc.ca> Sender: news@ida.liu.se (News Subsystem) Organization: CIS Dept, Univ of Linkoping, Sweden Lines: 34 In article <2250@lpami.wimsey.bc.ca> lphillips@lpami.wimsey.bc.ca (Larry Phillips) writes: >I feel that given encouragement to include ASCII as an acceptable format for >clip data, _many_ folks would have gone for it in their programs. With the >clipboard in comon use, pressure on the programmers to utilize IFF for sound, >graphics, and text containing special attributes would have come from the user >community. > >But... it may be too late for this. More's the pity. > >-larry Well, I am not quite sure that would have made much change. Clipping pure text (no font-stuff etc) is not really that hard right now. It can be done in the following lines of code (give or take a few lines ;-) sprintf(data,"FORMxxxxFTXTCHRSxxxx%s",text); ((long *)data)[1] = strlen(text)+8; ((long *)data)[4] = strlen(text); DoIO(clipreq); It is even more easy to read such data. The really hard part is to handle complex data such as pictures etc. There is definitely a need for a iffparse.library to handle that. - Michael -- ########################################################## # Michael Jansson | \_/ # Internet: mij@IDA.LIU.SE | V _|_ # UUCP: uunet!liuida!mij | | Absolut Software| # BITNET: mij@SELIUIDA | ~~~