squeak printing?

John M McIntosh johnmci at smalltalkconsulting.com
Fri Feb 8 04:53:25 UTC 2002


>This is starting to sound complicated.  What are we gaining over just
>having two primitives?
>
>	printForm:
>	printPostscript:
>
>
>-Lex

The process for printing at least on the mac is
beginDocument
beginPage
raster the bits, and or, print postscript
endPage
..
endDocument

Originally I had
printForm:  did
beginPage
raster the bits
endPage


However as pointed out what if you want to do both, and what if 
printing postscript before or after the rastering matters.

It's very simple to refactor those into primitives. Then I can wrap
beginPage and endPage around/within methods like these.

printForm:

printPostscript:

printForm: then: postscript

printPostscript then: aForm

-- 
--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================



More information about the Squeak-dev mailing list