Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!ubc-cs!alberta!news From: leigh@alberta.uucp (leigh willard) Newsgroups: comp.sys.next Subject: pasteboard Message-ID: <1989Aug31.201848.20892@alberta.uucp> Date: 31 Aug 89 20:18:48 GMT Sender: news@alberta.uucp (News Administrator) Organization: University of Alberta, Edmonton, Alberta, Canada Lines: 17 I am having trouble "pasting" to a view. I use the method [pb readType:NXPostScriptPboard data:&data length:&length] and when I print out 'data' to a file, sure enough, it is a bunch of postscript code. When I send the code to the postscript previewer 'YAP' I get what I want to be pasted. However, I am not sure what to do to send the postscript code to my view. I am trying the following: [aView lockFocus]; DPSWritePostScript(DPSGetCurrentContext(), data, length); [aView unlockFocus]; And I get the error: (actually, I get it many times) DPS client library error: PostScript program error %%[ Error: rangecheck; OffendingCommand: get ]%% Any comments would be appreciated. leigh willard