Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!biar!trebor From: trebor@biar.UUCP (Robert J Woodhead) Newsgroups: comp.sys.mac.programmer Subject: Printing Example Code Keywords: mac printing is a pain in the petute Message-ID: <451@biar.UUCP> Date: 12 Apr 89 04:16:12 GMT Organization: Biar Games, Inc. Lines: 41 ----------------------------------------------------------------------- THIS IS NOT A FLAME ABOUT APPLE - UNFORTUNATELY, I'M TOO NICE FOR THAT. ----------------------------------------------------------------------- Of all the mainfold agonies of Macintosh programming, IMHO the absolute worst is getting your application to print. The documentation in Inside Macintosh is _abysmal_ in this regard. If you put together all the stuff in IM1-V, plus the technotes, plus trial and error, then you still in most cases get something that works on alternate tuesdays during Lent. Well, I'm sick of screwing around with the printer drivers. And since Apple has, in 4 or 5 years, yet to publish some decent example code that has the minor virtue of working (to their everlasting shame!), I will bestow 1lb of Mrs. Fields Chocolate Chip Cookies upon the first person who posts to the net source code in MPW Pascal that handles printing properly. This is to say, code that: * Prints on all Apple supported printers * Prints in all selectable resolution modes * Lets the user abort * Prints under Finder & Multifinder on ALL machines * is in the form of "it's all set up, insert your code to image into this bitmap here". In case you are wondering, 1lb of Mrs. Fields is the ISO standard bribe to elicit example code. As for why I'm offering it, my most recent stab at printing code, which worked fine a few months ago and hasn't been changed, now seems to get pissed off when it's asked to print to an Imagewriter in other than draft mode. Hoping that you are hungry, I remain: -- * Robert J Woodhead * ``Spring Forward, Fall Back''. Another one of the * * uunet!biar!trebor * 23 reasons why taking a flying leap at a brick wall * * Biar Games, Inc. * is not a very good idea. *