Morphic-Postscript

Mark Guzdial guzdial at cc.gatech.edu
Thu Sep 16 13:54:05 UTC 1999


This is amazingly nice!  I just used it for the first time to generate an
image for my textbook.  The quality is *very* nice.  Thank you, Marcel, and
others involved in the project.  (And thanks to Bijan who urged me into
trying it! :-)

One suggestion for future versions: I'd like to have a preference to either
put the Postscript into the clipboard (the current setup), or to prompt for
a filename and put the Postscript out to the file.  I tried to clip the
PostScript on SameGame and started blowing away apps who couldn't handle
the huge clipboard. (BTW, one menu says "Copy Postscript" and the other
says "Clip to Postscript", but they both seem to do the same thing.)  I've
set up something like that for myself by sending to a filename if the shift
key is pressed (see fileOut at bottom of message).

Again, my thanks!  It's a nice option to have besides BMP/GIFs for getting
images out of Squeak!
Mark

>The current version of Postscript support for Morphic is now available at
>
>	 http://www.metaobject.com/downloads/Squeak/MorphicPostscript/
>
>You may also want to check the Squeak Central Project site at
>
>	http://minnow.cc.gatech.edu/squeak.753
>
>Marcel

'From Squeak 2.5 of August 6, 1999 on 16 September 1999 at 9:52:58 am'!

!Morph methodsFor: 'printing' stamp: 'mjg 9/16/1999 09:52'!
clipPostscript
	| fname file |
	^(Sensor shiftPressed) ifFalse: [Smalltalk clipboardText:self
asPostscript]
	  ifTrue: [fname _ FillInTheBlank request: 'Filename for Postscript?'.
			  file _ FileStream fileNamed: fname.
			  file nextPutAll: (self asPostscript).
			  file close.]


! !

--------------------------
Mark Guzdial : Georgia Tech : College of Computing : Atlanta, GA 30332-0280
(404) 894-5618 : Fax (404) 894-0673 : guzdial at cc.gatech.edu
http://www.cc.gatech.edu/gvu/people/Faculty/Mark.Guzdial.html





More information about the Squeak-dev mailing list